This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Hardware watchpoints
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Hardware watchpoints
- From: Jim Blandy <jimb at cygnus dot com>
- Date: 19 Oct 1999 23:28:31 -0500
- Cc: gdb at sourceware dot cygnus dot com
- References: <19991019235249.917DC1B494@ocean.lucon.org>
> My Linux gdb has supports for ...
> 2. "better" x86 hw watchpoint. It is different from the normal x86
> hw watchpoint which I don't like.
I wonder, would it be possible to watch expressions like foo.x by
having can_use_hardware_watchpoint ignore lval_memory values which are
still lazy? If a value is lazy, that means GDB never actually fetched
it, but instead just used its address.
Evaluating the expression foo.x, I think, produces two values: one for
'foo', which is lazy, and a second for the '.x' member of the first
value, which is no longer lazy.
This would remove the need for part of H.J.'s change, I think.