RFC gdb crashes on watchpoint that's no longer valid

Jason Molenda jason-swarelist@molenda.com
Tue Aug 13 15:55:00 GMT 2002


On Tue, Aug 13, 2002 at 03:21:24PM -0700, Jason Molenda wrote:

>       /* If symbols have changed so a saved global watchpoint no longer 
>          applies, delete it, lest gdb crash ungloriously. */
>       s = b->exp_string;
>       if (! gdb_parse_exp_1 (&s, innermost_block, 0, &(b->exp)))
>         {
>           warning ("Unable to reset watchpoint %d (unable to "
>                    "parse expression); deleting", b->number);
>           delete_breakpoint (b);
>           return 0;
>         }
>       xfree (s);


(yes yes, I know.  It's a cut-and-paste-o.  But you get the idea.)



More information about the Gdb mailing list