我是用 ntfs-3g 挂载了一个 NTFS 的磁盘,项目文件都放在了这个盘上,使用 gdb 时会遇到如下的错误:

warning: not using untrusted file ".gdbinit"

参考 http://comments.gmane.org/gmane.emacs.bugs/51822 发现是权限的问题,但是这个文件确实是我所有

ls -al | grep .gdbinit
-rwxrwxrwx. 1 dabao root  859  2月 17 19:43 .gdbinit
-rwxrwxrwx. 1 dabao root 857 2月 14 10:20 .gdbinit.tmpl

导致 gdb 无法附加到 qemu 进程中

目前我只能这么来解决:

gdb -ex='source .gdbinit'

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-06-12
  • 2022-02-05
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-03-05
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案