Hi,
I was wondering how to specify the source files directory of a library to GDB so that I can step into the library source. Thanks!
Hi,
I was wondering how to specify the source files directory of a library to GDB so that I can step into the library source. Thanks!
If the library is compiled with debug info, it should happen by "automagic" - if it's not compiled with debug info, there's not much you can do other than recompile the library WITH debug info.
There are also some settings in GDB that needs to be correct to allow it to find source-code, but this only really makes a difference if you have MOVED the source after you first built it [or you have a ready-built library that doesn't have the source in the same place].
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thanks! What are the "settings in GDB"?
Some more specific information on GDB files within the GDB program
http://sourceware.org/gdb/current/on...17.html#SEC164
Try typing "help" within the debugger and see what more information you can dig up that way as well.
Environment: OS X, GCC / G++
Codes: Java, C#, C/C++
AOL IM: neandrake, Email: neandrake (at) gmail (dot) com