gdb快速退出


http://scc.qibebt.cas.cn/docs/compiler/intel/2011/debugger/cl/commandref/gdb_mode/cmd_set_confirm.htm

set confirm (gdb mode only)

Switch confirmation requests on or off.

Syntax

set confirm {on|off}

Parameters

on

Turns on confirmation requests.

off

Turns off confirmation requests.

Description

This command switches confirmation requests for various commands on or off.

Example

In the following example, confirmation is set to on by default:

(idb)  quit
The program is running.  Exit anyway? (y or n) y
$

In the following example, notice that set confirm off results in the debugger quitting without asking for confirmation.

(idb)  set confirm off
(idb)  quit
$

Submit feedback on this help topic

-------------------------------------------------------------、

gdb 中 quit 命令的快捷健是 CTRL-D

set confirm off

CTRL-D

直接退出程序

你可能感兴趣的:(gdb快速退出)