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: [PATCH v2][PR gdb/19893] Fix handling of synthetic C++ references


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


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