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] Fix watching structs in C++


On Mon, Mar 5, 2018 at 5:32 PM, Andreas Arnez <arnez@linux.vnet.ibm.com> wrote:
> OK, how about this? --
>
> ... However, if a watchpoint is defined for a C++ structure/class
> object, then run-time type information (RTTI) may be present.  Thus,
> while constructing the value chain for the watchpoint, the dynamic type
> is fetched by gnuv3_rrti_type, which invokes value_addr, which then adds
> a new value to the head of the value chain.  This new value represents
> the pointer to the structure instead of the structure itself.
>

I think I understand that part now.  Thanks for the explanation.  Patch is
good to me.

-- 
Yao (齐尧)


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