开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜