[PATCH] Add gdb.current_arch() function to python module -- equivalent of guile (current-arch)

Matthew Malcomson hardenedapple@gmail.com
Wed Feb 8 17:46:00 GMT 2017


The problem is that without this patch I can't get an Architecture 
object without first having a Frame object, and I can't get a Frame 
object without starting my target program.

Adding a gdb.current_arch() function is in order to get the Architecture 
object I need without starting the target program.


On 08/02/17 17:15, Yao Qi wrote:
> On Mon, Feb 6, 2017 at 5:01 PM, Matthew Malcomson
> <hardenedapple@gmail.com> wrote:
>> I've been finding that awkward in some extensions I've been writing, mainly
>> when I want to work with the disassembly of a function before my target
>> program
>> has started.
>>
> Architecture.disassemble doesn't work?
> https://sourceware.org/gdb/current/onlinedocs/gdb/Architectures-In-Python.html
>



More information about the Gdb-patches mailing list