[PATCH] Fix watching structs in C++

Yao Qi qiyaoltc@gmail.com
Mon Mar 5 13:46:00 GMT 2018


Andreas Arnez <arnez@linux.vnet.ibm.com> writes:

Hi Andreas,

> Some of the watchpoint logic depends on the fact that the head of the
> value chain represents the user-specified value to watch.  Thus no
> additional values should be added to the value chain after that.  However,
> this may happen in gnuv3_rrti_type, where value_addr is invoked.  If no
> RTTI is found, then the pointer value built by value_addr, rather than the
> original value, stays in front of the value chain.

I sort of understand the value chain in watchpoint expressions, but it
is still a big gap from watchpoint value chain to the function you
changed in the patch.

Could you please add more information in commit log? especially about
how value chain is related to gnuv3_rrti_type.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list