禁用特定命令的gdb输出

禁用特定命令的gdb输出,gdb,Gdb,我想在gdb中运行以下命令: while 1 x $pc stepi end 但是我不想要stepi命令的输出。是否有办法仅禁用stepi命令输出?您可能需要尝试: 按如下方式键入gdb: python while True: gdb.execute("x/i $pc") gdb.execute("stepi", to_string=True) end python while True: gdb.execute("x/i $pc") gdb.execute(

我想在gdb中运行以下命令:

while 1
x $pc
stepi
end
但是我不想要stepi命令的输出。是否有办法仅禁用stepi命令输出?

您可能需要尝试:

按如下方式键入gdb:

python
while True:
    gdb.execute("x/i $pc")
    gdb.execute("stepi", to_string=True)
end
python
while True:
    gdb.execute("x/i $pc")
    gdb.execute("stepi", to_string=True)
end