我想知道 linux gdb 调试。
我有 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"?
我不想永远显示此错误消息。所以,我想保存库搜索路径。我能怎么做?