This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: partially fix empty DW_OP_piece
On Fri, 04 Jun 2010 23:39:06 +0200, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> OK, that probably means there really must remain a way to convert
> Jan> `inferior dependent struct value' into an `inferior independent
> Jan> struct value'.
>
> Yeah, at least as far as the bounds are concerned. IMO.
>
> The current gdb model is sort of mixed. A struct value is a snapshot of
> some bit of state. But, when printing a value, we might refer to other
> state in the target. For example:
>
> struct x { char *name; };
Understood but I find it more wrong in (plain) C as it has no `string' type.
The same problem happens for other data types being PythonPrettyPrinted.
Thanks,
Jan