Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
gdb.execute
Yes, see the "to_string" argument to gdb.execute:
str = gdb.execute('some command', to_string = True)
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.