This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [01/15] Introduce get_current_arch () function
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: tromey at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Jun 2009 20:12:56 +0200 (CEST)
- Subject: Re: [01/15] Introduce get_current_arch () function
Tom Tromey wrote:
> >>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:
>
> Ulrich> There wouldn't really be much of a difference today, as the architecture
> Ulrich> of val_args[i] is the architecture of the expression from which it was
> Ulrich> evaluated, which is likewise get_current_arch ().
>
> Is that true even if the expression is something like "$var"?
> I did not read the patch series *that* closely, but I would have
> assumed that the arch of the resulting value would come directly from
> the convenience variable's value -- which could be anything.
Ah, you're right. For convenience variables or values from the
history, you can get indeed another architecture.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com