[PATCH] Fix watching structs in C++
Andreas Arnez
arnez@linux.vnet.ibm.com
Wed Mar 7 14:45:00 GMT 2018
On Wed, Mar 07 2018, Yao Qi wrote:
> 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.
Thanks. Pushed:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=e95a97d41a18
--
Andreas
More information about the Gdb-patches
mailing list