2017-06-13 11 views
0

無効にgdbの出力

while 1 
x $pc 
stepi 
end 

しかし、私は、工程1コマンドの出力を望んでいません。 stepiコマンド出力だけを無効にする方法はありますか?

答えて

0

あなたはgdbpythonを試してみたいことがあります。このようにgdbへ

while True: 
    gdb.execute("x/i $pc") # you can see the output on terminal 
    gdb.execute("stepi", to_string=True) # so that you cannot see its output 
    # some stop criteria here? 

タイプ:

python 
while True: 
    gdb.execute("x/i $pc") 
    gdb.execute("stepi", to_string=True) 
end 
関連する問題