This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: RFC gdb crashes on watchpoint that's no longer valid
- From: Jason Molenda <jason-swarelist at molenda dot com>
- To: gdb at sources dot redhat dot com
- Date: Tue, 13 Aug 2002 15:55:26 -0700
- Subject: Re: RFC gdb crashes on watchpoint that's no longer valid
- References: <20020813152124.A97909@molenda.com>
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.)