From: Matthew Malcomson <hardenedapple@gmail.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add gdb.current_arch() function to python module -- equivalent of guile (current-arch)
Date: Wed, 08 Feb 2017 17:46:00 -0000 [thread overview]
Message-ID: <bc7e5720-6639-e588-a831-17233a9bc0a3@gmail.com> (raw)
In-Reply-To: <CAH=s-PMKXc_yN=vmpWzHAsZeDOaifSqzcsZVONcNQz1HG-fk5w@mail.gmail.com>
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
>
next prev parent reply other threads:[~2017-02-08 17:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-06 17:02 Matthew Malcomson
2017-02-08 17:15 ` Yao Qi
2017-02-08 17:46 ` Matthew Malcomson [this message]
2017-02-08 22:15 ` Yao Qi
2017-02-09 10:46 ` Matthew Malcomson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc7e5720-6639-e588-a831-17233a9bc0a3@gmail.com \
--to=hardenedapple@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).