This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]