ddd debugger help needed ...

lupohki

Golden Member
Oct 11, 1999
1,925
0
0
I need to put a breakpoint and step through a dynamic library source file that my executable is using. But when I do "open source", I only see the header files of the dynamic library. Anyone know why the .c files aren't there? Thanks.

edit: Both the library and executable is compiled in debug.
 

HigherGround

Golden Member
Jan 9, 2000
1,827
0
0
on ddd/gdb prompt ( > )

>b main
>r
>info share

at this point make sure that the symbols for the shared object library are loaded, if not type ...

>share

at this point you should have the source available, set your breakpoints and type ...

>c

to continue


edit: if you'are are using dlopen(...) to load the shared objects ( instead of linking with them ), say so, and we'll figure something out