Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can gdb';s";输入不是从终端“输入”;信息将被抑制?_Gdb - Fatal编程技术网

Can gdb';s";输入不是从终端“输入”;信息将被抑制?

Can gdb';s";输入不是从终端“输入”;信息将被抑制?,gdb,Gdb,我有一个gdb脚本,它以命令quit结束 当我像这样运行脚本时: gdb -x foo.gdb target_program 最终输出始终具有: Quit anyway? (y or n) [answered Y; input not from terminal] 是否有办法抑制整个消息,甚至抑制[]中的部分 [answered Y; input not from terminal] 先尝试执行 set confirm off 在foo.gdb中首先在foo中执行设置confirm o

我有一个
gdb
脚本,它以命令
quit
结束

当我像这样运行脚本时:

gdb -x foo.gdb target_program
最终输出始终具有:

Quit anyway? (y or n) [answered Y; input not from terminal]
是否有办法抑制整个消息,甚至抑制
[]
中的部分

[answered Y; input not from terminal]
先尝试执行

set confirm off 

在foo.gdb中

首先在foo中执行
设置confirm off
。gdb@skwllsp,行得通!不过,我不知道我自己是怎么发现的。如果你把答案贴出来,我会接受的。