Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我开始使用 gdb 进行调试时,我将一些断点和命令编辑到 gdbinit 文件中。
如何在不脱离进程的情况下进行调试时更改此文件并再次加载它?
如何更改此文件并再次加载
这个文件没有什么特别的(除了它在启动时被 GDB 自动读取)——它只是一个 GDB 命令文件。
您可以使用 重新阅读它(gdb) source ~/.gdbinit。
(gdb) source ~/.gdbinit