This is the mail archive of the
gdb@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 type of a value is irrelevant --- we're trying to track the memory
references made in the course of evaluating the expression.