2017-06-13 101 views

回答

0

你可能想尝试gdbpython

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? 

类型gdb的是这样的:

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