gdb breakpoint doesnt work?
hiho@ll
i have a library which is loaded by my daemon process the library starts a server and the server runs a few threads i want to debug those threads the threads are defined by proxy.hpp file if i compile the stuff with -g -ggdb -g3 -ggdb3 and do Code:
gdb ./myprog it's like no debugger is running Q1: why doesn't gdb recognize my source files? it only knows about the main source file but the source files of the librarys loaded aren't recognized Q2: if gdb asks for setting the breakpoint in future depending on shared libraries (which i'm using!) why it doesn't break on my breakpoint proxy.hpp:120? Q3: maybe i have to use different compile flags? btw. i'm compiling the libraries and the main prog with the flags and i tried only the flag -g but i got the same i'm using GNU gdb 6.3 thx@ll |
Quote:
Also, maybe gdb cannot find the sources for the shared lib. You can specify where gdb should look for sources. See: Code:
bash$ info gdb "Source" "Source Path" |
good point
but it doesn't seem to work neither changing proxy.hpp to proxy.cpp nor the directory command |
Could you please post the source code lines surrounding proxy.hpp:120?
|
All times are GMT -5. The time now is 06:27 AM. |