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: [rfc] Use LONGEST instead of value for index arithmetic


>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:

Ulrich> this patch implements the change I mentioned recently: use
Ulrich> LONGEST instead of struct value to represent array indexes
Ulrich> (and similarly the integer operands to pointer arithmetic).
Ulrich> This has the advantage that index computations can be
Ulrich> performed in host instead of target arithmetic, and not just
Ulrich> eliminates a bunch of references to global built-in types, but
Ulrich> makes both implementation and users of the value_subscript and
Ulrich> pointer arithmetic routines quite a bit simpler.

I read this patch.  I agree with your assessment: it does make things
simpler.  I'm in favor of it for that reason.

Tom


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