This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix watching structs in C++
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>
- Date: Wed, 7 Mar 2018 11:36:51 +0000
- Subject: Re: [PATCH] Fix watching structs in C++
- Authentication-results: sourceware.org; auth=none
- References: <m34lm2paqs.fsf@oc1027705133.ibm.com> <86k1uq3aar.fsf@gmail.com> <m3a7vmpgwf.fsf@oc1027705133.ibm.com>
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 (齐尧)