News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

GDB wont work anymore.

Started by Daazku, December 29, 2008, 08:07:56 PM

Previous topic - Next topic

Daazku

I have a problem with gdb... When i start the debugger i have this message:

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: C:\C++\
Adding source dir: C:\C++\
Changing directory to: Ressources
Adding file: Ressources\Client.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
No source file named C:/C++/Client/Engine/Interface/Interfaces/Login.cpp in loaded symbols.
Breakpoint 1 ("C:/C++/Client/Engine/Interface/Interfaces/Login.cpp:132) pending.


and after that my program won't start. Dunno why.. it's worked before...

Daazku

Ok now its work.. i really dont know why..

But i put a break point in a function and gdb crash...

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\C++\
Adding source dir: C:\C++\
Changing directory to: Ressources
Adding file: Ressources\ClientDebug.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
Child process PID: 2132
At C:/C++/Client/Engine/Interface/Interfaces/Login.cpp:64
Debugger finished with status 1

mmkider

Quote from: Daazku on December 29, 2008, 09:13:55 PM
Ok now its work.. i really dont know why..

But i put a break point in a function and gdb crash...

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\C++\
Adding source dir: C:\C++\
Changing directory to: Ressources
Adding file: Ressources\ClientDebug.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
Child process PID: 2132
At C:/C++/Client/Engine/Interface/Interfaces/Login.cpp:64
Debugger finished with status 1

You can try this: Disable this option of catch c++ execption.

ollydbg

to OP:
If you post your code, I'd test for you in my environment :D.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Daazku

Sorry for the late answer:

Finally i don't know why, i changed nothing (apparently...), it worked... Thanks neway.