【问题标题】:how to close gdb connection without stopping running program如何在不停止运行程序的情况下关闭 gdb 连接
【发布时间】:2016-06-30 00:14:55
【问题描述】:

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

【问题讨论】:

    标签: debugging gdb gdbserver


    【解决方案1】:

    有没有办法在不停止/退出正在运行的程序的情况下退出 gdb 连接?

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

    【讨论】:

    • 如何在不先停止的情况下发出detach 命令?
    猜你喜欢
    • 1970-01-01
    • 2011-04-15
    • 1970-01-01
    • 2014-05-31
    • 1970-01-01
    • 1970-01-01
    • 2021-09-15
    • 2018-12-11
    • 1970-01-01
    相关资源
    最近更新 更多