This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Problems with hardware watchpoint on ia32.
> > I seem to be unable to reproduce the problem, at least in a C program:
> > whenever I say "watch foo == bar" (where foo and bar are structs), GDB
> > curses thusly:
> >
> > Structure has no component named operator==.
> >
> > Am I missing something?
>
> As Michael points out, structure comparison is broken. But that
> doesn't change my original point --- that it's perfectly legitimate to
> have `struct value' objects representing structures, which should be
> watched in their entirety.
The current sources do support watching an entire struct, the patches
I sent (and Michael commited) have special provisions for this case.
I asked for an example because I want to look into the problem you
were describing and fix it. Do you have any other case where this
problem could happen?
If every instance of such a situation is equally broken, then the
users won't miss this functionality ;-).