|
|
Re: Debug Shared Libraries [message #557658 is a reply to message #557592] |
Wed, 08 September 2010 12:59 |
No real name Messages: 12 Registered: September 2010 |
Junior Member |
|
|
When I type "stop-on-solib-events" into the console window why I am in the debug perspective I just get this message: "Undefined command: "stop-on-solib-events". Try "help".
Seems like my gdb does not recognize this command. You have an idea why?
Edit: I entered "set stop-on-solib-events 1" and gdb did not print any error message. Is this syntax correct?
When I enter this command in the debug console the program stops at _dl_debug_state() and says:
"No source available for _dl_debug_state() at 0x7ffff7dede20"
Anyone knows what I am doing wrong?
[Updated on: Wed, 08 September 2010 13:20] Report message to a moderator
|
|
|
|
|
|
Re: Debug Shared Libraries [message #557840 is a reply to message #557824] |
Thu, 09 September 2010 07:47 |
No real name Messages: 12 Registered: September 2010 |
Junior Member |
|
|
Axel Mueller wrote on Thu, 09 September 2010 02:46 |
After setting your breakpoint did it halt again in _dl_debug_state()? This would indicate that you load several shared libs.
|
Yes, it seems like the debugger stops several times in _dl_debug_state()
Axel Mueller wrote on Thu, 09 September 2010 02:46 |
As a workaround you can use the old CDI debugger interface. At the bottom of the Debug Launch Configuration it says "Use GDB (DSF) Create Process Launcher". Click "Select other" and choose then "Standard Create Process Launcher". AFAIK, the old debug interface supports pending breakpoints.
|
Changing the debugger to "Standard Create Process Launcher" gives me this message (several times) on the console (I selected the checkbox "Stop on shared library events"):
"Stopped due to shared library event"
So the debugger really seems to halt several times in _dl_debug_state. Unfortunately the debugger still does not halt on my shared lib breakpoint. Another strange thing is: When I use the Standard Create Process Launcher and order him to stop on shared lib events my program does not work. I have a render application and when I activate stop on shared libs my render window just stays black and I have to quit the application.
I hope you still have some ideas
[Updated on: Thu, 09 September 2010 07:50] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03057 seconds