如何在不停止运行程序的情况下关闭gdb连接

时间:2016-06-29 08:42:56

标签: debugging gdb gdbserver

有没有办法退出gdb connnection而不停止/退出正在运行的程序?我需要在gdb连接关闭后继续运行程序。

1 个答案:

答案 0 :(得分:2)

  

有没有办法退出gdb connnection而不停止/退出正在运行的程序?

(gdb) help detach
Detach a process or file previously attached.
If a process, it is no longer traced, and it continues its execution.  If
you were debugging a file, the file is closed and gdb no longer accesses it.

List of detach subcommands:

detach checkpoint -- Detach from a checkpoint (experimental)
detach inferiors -- Detach from inferior ID (or list of IDS)

Type "help detach" followed by detach subcommand name for full documentation.
Type "apropos word" to search for commands related to "word".
Command name abbreviations are allowed if unambiguous.
相关问题