如何解决 GDB 的警告?

如何解决 GDB 的警告?

我需要有关调试 GIMP 2.10.10 的帮助

操作系统 Ubuntu 18.04.2 LTS

GDB 版本(Ubuntu 8.1-0ubuntu3)8.1.0.20180409-git

当我尝试在 flatpak 沙箱中生成回溯时,我从 GDB 收到此消息

Starting program: /app/bin/gimp 
warning: File "/usr/lib/x86_64-linux-gnu/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/lib/x86_64-linux-gnu/libthread_db-1.0.so
line to your configuration file "/home/user/.gdbinit".
To completely disable this security protection add
    set auto-load safe-path /
line to your configuration file "/home/user/.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.

我重新启动终端并尝试:

gdb add-auto-load-safe-path /usr/lib/x86_64-linux-gnu/libthread_db-1.0.so

add-auto-load-safe-path:没有此文件或目录。

/usr/lib/x86_64-linux-gnu/libthread_db-1.0.so:没有此文件或目录。

然后我用:

gdb set auto-load safe-path /

警告:设置:没有此文件或目录。

/home/user/auto-load:没有此文件或目录。

我也尝试:

gdb -q -iex "set auto-load safe-path /home/user/gdb" ./gdb

./gdb:没有此文件或目录。

请帮我注意我做错了什么

提前谢谢了!

相关内容