gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 22:42:50 25 4
gpt4 key购买 nike

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

最佳答案

Is there a way to exit from gdb connnection without stopping / exiting running program ?


(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.

关于debugging - 如何在不停止运行程序的情况下关闭gdb连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38094488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com