Author Topic: GDB wont work anymore.  (Read 5871 times)

Offline Daazku

  • Single posting newcomer
  • *
  • Posts: 5
GDB wont work anymore.
« on: December 29, 2008, 08:07:56 pm »
I have a problem with gdb... When i start the debugger i have this message:

Code
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...

Offline Daazku

  • Single posting newcomer
  • *
  • Posts: 5
Re: GDB wont work anymore.
« Reply #1 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...
Code
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

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: GDB wont work anymore.
« Reply #2 on: December 30, 2008, 05:07:07 am »
Ok now its work.. i really dont know why..

But i put a break point in a function and gdb crash...
Code
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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: GDB wont work anymore.
« Reply #3 on: January 04, 2009, 02:56:52 pm »
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.

Offline Daazku

  • Single posting newcomer
  • *
  • Posts: 5
Re: GDB wont work anymore.
« Reply #4 on: January 22, 2009, 04:40:46 am »
Sorry for the late answer:

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