RFC gdb crashes on watchpoint that's no longer valid

Andrew Cagney ac131313@ges.redhat.com
Wed Aug 14 21:26:00 GMT 2002


>> Date: Tue, 13 Aug 2002 15:21:24 -0700
>> From: Jason Molenda <jason-swarelist@molenda.com>
>> 
>> Do either of these approaches appeal to anyone?
> 
> 
> My vote is for removing the watchpoint, but I think the message
> should be more clear.  For example:
> 
>       if (! gdb_parse_exp_1 (&s, innermost_block, 0, &(b->exp)))
>         {
>           warning ("Unable to reset watchpoint %d (some of "
>                    "its variables don't exist); deleting", b->number);

Mine is for: do the same as for breakpoints (unless that is also 
dump-core :-)

Andrew




More information about the Gdb mailing list