[PATCH v2][PR gdb/19893] Fix handling of synthetic C++ references
Pedro Alves
palves@redhat.com
Wed May 25 18:24:00 GMT 2016
On 05/24/2016 09:35 PM, Martin Galvan wrote:
> So I think before proceeding we should decide which output is better.
> Perhaps we could show @address whenever possible, and <synthetic
> pointer> for the corner cases?
Yes, I think so. Synthetic pointers are really
an implementation detail, not really something users care about.
> On a related note, it'd be great (for debugging at least!) if unions
> such as this had at least a discriminant of sorts.
It's the value's lval type. :-)
> Right now I don't think so. The existing methods should be enough to
> handle these cases. Speaking of which, are there any plans to rewrite
> this sort of object-oriented code in C++? I'd love to take a shot at
> this in the future.
Certainly, that'd be welcome.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list