Re: [PATCH] Vector to scalar casting and widening

Tom Tromey
2013-01-09T19:08:42Z

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

Ulrich> My understanding of how this is supposed to work out is that GDB
Ulrich> "value" operations *do not* actually implement the precise semantics
Ulrich> of any of the languages GDB supports; rather, they implement a GDB
Ulrich> private semantics of "GDB value" objects. Now, as those are private
Ulrich> to GDB, we are free to implement them however we wish; for pragmatic
Ulrich> and historical reasons, they do mostly (but not completely!) match
Ulrich> C semantics.

[...]

Ulrich> [ For historical reasons, some of the value_* operations currently
Ulrich> change aspects of their behaviour depending on current_language.
Ulrich> This is really a bug, and we ought to (and slowly do) move away
Ulrich> from this. For example, in a program employing multiple languages
Ulrich> simultaneously, GDB value objects might have been created from
Ulrich> values in a different language than the "current" one. ]

This seems like a good direction to me.

Tom