[PATCH] Fix watching structs in C++
Yao Qi
qiyaoltc@gmail.com
Wed Mar 7 11:36:00 GMT 2018
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 (齐尧)
More information about the Gdb-patches
mailing list