From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedro@codesourcery.com (Pedro Alves)
Cc: gdb-patches@sourceware.org, tromey@redhat.com
Subject: Re: [01/15] Introduce get_current_arch () function
Date: Wed, 10 Jun 2009 18:27:00 -0000 [thread overview]
Message-ID: <200906101826.n5AIQ4sK013668@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <200906101750.03206.pedro@codesourcery.com> from "Pedro Alves" at Jun 10, 2009 05:50:02 PM
Pedro Alves wrote:
> I haven't actually studied the patch set, so sorry if this sounds
> way off, but Tom's remark made me wonder how does this interact with
> re-printing values from the history ($1, $2, $nnn) or convenience
> variables? As in, what would be the arch used to print $nnn? Should it
> be the current arch, or the arch that was used when the value was produced? A
> simple example where it can be a different arch is if you debug
> inferior/target foo, print something, kill/disconnect, debug
> inferior/target 2, reprint value from history.
Typically, the architecture is consulted to retrieve properties the
value inherently has, so using the arch used at value creation seems
correct. However, I'm sure there will be places where using a value
from one arch in the context of another current arch may not work
quite as expected yet ... I didn't attempt to address all these
issues with the current patch series yet.
> I see from the hunk above that the language used is always the
> current language, so it may be right to always use the current arch...
Actually, I'm not sure using the current language is correct
here either ... (In this particular piece of code, it doesn't
seem to matter either way right now, because lookup_typename
only depends on lang/arch when searching for primitive types,
which wchar_t isn't.)
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2009-06-10 18:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 15:15 Ulrich Weigand
2009-06-09 17:04 ` Tom Tromey
2009-06-10 15:36 ` Ulrich Weigand
2009-06-10 16:40 ` Tom Tromey
2009-06-10 18:14 ` Ulrich Weigand
2009-07-02 17:04 ` Ulrich Weigand
2009-06-10 16:49 ` Pedro Alves
2009-06-10 18:27 ` Ulrich Weigand [this message]
2009-06-10 19:23 ` Pedro Alves
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=200906101826.n5AIQ4sK013668@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
--cc=tromey@redhat.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