This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Watching a struct member
- To: gdb-patches@sourceware.cygnus.com
- Subject: Watching a struct member
- From: Eli Zaretskii <eliz@gnu.org>
- Date: Sun, 15 Aug 1999 04:29:48 -0400
Try saying "watch foo.bar", where foo is a struct, and GDB will want
to watch the entire struct foo. For example, if sizeof (foo) returns
20, GDB wants to watch the region whose address is &foo and whose
length is 20 bytes.
Is this a bug or a feature? If it's a feature, then why would GDB
need to watch the entire struct?