Debugging a GUI application with gdb
Hello everyone,
I need to debug a gui application with gdb but have run into some problems.
So, I invoke gdb as follows:
gdb [application]
and at the gdb prompt
run [application]
Now, the problem is that the application takes over and I do not get a gdb prompt anymore. I can get the prompt by typing Ctrl+z but then I cannot reactivate my application anymore even after typing Continue or whatever. It is really strange. I need to debug a shared object and gdb does not allow me to put breakpoints before I type run and then I have no opportunity to do it anymore!
Does anyone know how I can work around this??! I am really going crazy over this problem.
I am using Cent OS 5 and using the GNU gdb 6.5.
Would really appreciate some help on this.
/Luca
|