我想了解Linux中的GDB调试。
我有一个可执行文件和一个核心转储文件。 因此,我在Linux中打开它, 像这样:
但是,我只显示错误信息。
所以,我输入了命令,
"并且,我重新打开转储文件。就像这样,"
但仍然显示相同的错误信息。
我不想再显示这个错误消息了。 因此,我想保存图书馆搜索路径。 我该怎么做?
我有一个可执行文件和一个核心转储文件。 因此,我在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/
and symbol read succeed. and, I input command
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"?
我不想再显示这个错误消息了。 因此,我想保存图书馆搜索路径。 我该怎么做?