![](/img/trans.png)
[英]How to make gdb print symbols in shared libraries loaded with dlopen?
[英]How to make the debugged app find shared libraries when invoked in gdb inside Eclipse CDT?
我正在尝试在Linux x86_64(Ubuntu Karmic)上的Eclipse CDT中调试Firefox干线。
我已经完成以下工作:
以上内容足以使用“运行”成功启动Firefox。 但是,使用Debug启动时,我在控制台中看到这一行: /opt/Projects/obj-debug/dist/bin/firefox-bin: error while loading shared libraries: libmozalloc.so: cannot open shared object file: No such file or directory
我还尝试将相关路径放入“调试器”窗格的共享库子窗格中,并尝试将set solib-search-path /opt/Projects/obj-debug/dist/bin/components:/opt/Projects/obj-debug/dist/bin/plugins:/opt/Projects/obj-debug/dist/bin
放入set solib-search-path /opt/Projects/obj-debug/dist/bin/components:/opt/Projects/obj-debug/dist/bin/plugins:/opt/Projects/obj-debug/dist/bin
在我的.gdbinit中。
没运气。
调试应用程序后,我应该怎么做才能找到共享库?
我经常成功地设法使用CDT调试器:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.