This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC gdb crashes on watchpoint that's no longer valid


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.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]