This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]