2
我不知道linux的gdb调试。如何保存“set solib-search-path”
我有1个执行文件,1个核心转储文件。 所以,我在linux 这样打开了它,
gdb exefilename -c exefuilename.core
,但是,我只显示错误消息。
warning: Could not load shared library symbols for 44 libraries, e.g. /usr/local/lib/libboost_system.so.1.55.0.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
所以,我输入的命令,
set solib-search-path /librarypath/
和符号读取成功。 和,我输入命令
quit
而且,我重新打开转储文件。像这样,
gdb exefilename -c exefuilename.core
但仍显示相同的错误消息。
warning: Could not load shared library symbols for 44 libraries, e.g. /usr/local/lib/libboost_system.so.1.55.0.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
我不想显示这个错误信息。 所以,我想保存库搜索路径。 我该怎么办?
谢谢!!!!!! – user3416447