This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Watching a struct member
- To: Eli Zaretskii <eliz@gnu.org>
- Subject: Re: Watching a struct member
- From: Jim Blandy <jimb@cygnus.com>
- Date: 16 Aug 1999 04:14:31 -0500
- Cc: gdb-patches@sourceware.cygnus.com
- References: <199908150829.EAA01478@mescaline.gnu.org>
> Is this a bug or a feature? If it's a feature, then why would GDB
> need to watch the entire struct?
It's a bug. GDB decides what to watch by looking at all the
intermediate value structures generated in the process of evaluating
the watch expression. GDB's values work in such a way that foo.bar is
evaluated by fetching foo, and then extracting bar. So a `struct
value' appears on the list containing all of foo.
Groovy....