warning: File "/usr/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
解决办法:
1.在家目录下,vi ~/.gdbinit
2.加入以下内容
add-auto-load-safe-path /usr/lib64/libthread_db-1.0.so #后面的文件路径选择自己需要添加的
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will no t be available.
解决办法:
更新新版本的gdb
yum -y update gdb