From: Yao Qi <qiyaoltc@gmail.com>
To: Matthew Malcomson <hardenedapple@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 22:15:00 -0000 [thread overview]
Message-ID: <CAH=s-PO-L6BKTybPVWjfF_8jmzoWu=HqnZVRn44SmmKhqZv8ng@mail.gmail.com> (raw)
In-Reply-To: <bc7e5720-6639-e588-a831-17233a9bc0a3@gmail.com>
On Wed, Feb 8, 2017 at 5:46 PM, Matthew Malcomson
<hardenedapple@gmail.com> wrote:
> 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.
>
IMO, "current" arch is unclear as an extension language interface. Yes, we
do have function get_current_arch, but it is just a c function, we are free to
change it in the future.
It would be better to add function Inferior.architecture. I don't have much
GDB python expertise, so I'd like to hear what other people think.
--
Yao (齐尧)
next prev parent reply other threads:[~2017-02-08 22:15 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
2017-02-08 22:15 ` Yao Qi [this message]
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='CAH=s-PO-L6BKTybPVWjfF_8jmzoWu=HqnZVRn44SmmKhqZv8ng@mail.gmail.com' \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=hardenedapple@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