0

Would it be possible to retrieve the result of an instruction as a Python string? As an example: I could execute "x/i $eip" from within python using gdb.execute. Would I be able to fetch the result of the same as a Python string?

1 Answer 1

1

Yes, see the "to_string" argument to gdb.execute:

str = gdb.execute('some command', to_string = True)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.