From: Tom Tromey <tromey@redhat.com>
To: "Ulrich Weigand" <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [02/15] Python interpreter callback functions
Date: Tue, 09 Jun 2009 17:59:00 -0000 [thread overview]
Message-ID: <m3eittl250.fsf@fleche.redhat.com> (raw)
In-Reply-To: <200906091515.n59FFU04027588@d12av02.megacenter.de.ibm.com> (Ulrich Weigand's message of "Tue\, 9 Jun 2009 17\:15\:30 +0200 \(CEST\)")
>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
Ulrich> If there's a more elegant way of passing this sort of
Ulrich> environmental information through the Python interpreter, I'd
Ulrich> appreciate any hints from the Python experts ;-)
I think this is ok as a default, but ideally the various Python
methods would take an optional architecture argument. That would mean
having some Python representation of the architecture.
I think any place that acquires the GIL should probably also set the
architecture. I noticed that gdbpy_new_objfile was not touched in
your patch; there may be other places as well. Perhaps all this work
could be done by a single convenience function, to make it harder to
forget in the future.
If we had some notion of the "host architecture", then stuff like
builtin_type_pyint could just use that instead. Those defines really
represent types on the host.
Tom
next prev parent reply other threads:[~2009-06-09 17:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 15:15 Ulrich Weigand
2009-06-09 17:59 ` Tom Tromey [this message]
2009-06-10 15:49 ` Ulrich Weigand
2009-06-22 20:59 ` Ulrich Weigand
2009-06-23 20:45 ` Tom Tromey
2009-07-02 17:06 ` Ulrich Weigand
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=m3eittl250.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.ibm.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