GDB - debug external library, have source code
I am using gdb to debug a package that is using an external library. I have开发者_JAVA技巧 the source code of the external library. How do I make gdb load this source code as well? Thank you!
Do you know if the external library was compiled with the "include debugging symbols" flag set? I assume it was not. If you can recompile with that flag set it will make debugging easier.
To make GDB find sources for the library, use the dir
command. More info here.
精彩评论