This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Watching a struct member



> 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....

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]