This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Code in can_use_hardware_watchpoint()
- To: jtc@redback.com
- Subject: Re: Code in can_use_hardware_watchpoint()
- From: Jim Blandy <jimb@cygnus.com>
- Date: 16 Aug 1999 02:04:35 -0500
- Cc: gdb@sourceware.cygnus.com
- References: <5mu2q3jl6i.fsf@jtc.redbacknetworks.com>
I'm not really familiar with this code, but:
> One solution is to add an:
>
> else if (v->lval == lval_register)
> return 0;
I think this is the right thing.
The value chain is supposed to be a list of all the values generated
while evaluating the watchpoint's expression. (What if someone else
generates a value in the mean time? Don't you think it's a bad idea
to draft a list intended for storage management into use in expression
analysis? Bleah.) If you find anything on there that could change,
but can't be watched, you should return zero.
But the fix seems so obvious there must be something else going on...