I would like to debug a program which dynamically loads a shared library
with dlopen() with dbx and/or the graphical workshop de* on linux
I have no problem with the basic debugging, but experience the following
problem: when the shared library is not loaded, I cannot set breakpoints
for code in the shared library. This means, I have to set a breakpoint
after the loading call and set the further breakpoints when this
breakpoint is reached.
Any hints how to resolve this problem?
Irix de*s have a nice feature called pendingtraps which allows to
define breakpoints on not yet loaded modules. Is there something similar
in gdb on Linux?
Or, is there a way to tell gdb to load the dynamically loaded shared
library when starting the program although it's not in the list of
shared libraries in the program?
Furthermore, is there a way to save breakpoints between sessions?
I'm using the following versions of gdb version GNU gdb 19991004
Any help is appreciated.