This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix watchpoints when stepping over a breakpoint
- From: "Eli Zaretskii" <eliz at is dot elta dot co dot il>
- To: drow at mvista dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 05 Apr 2002 10:34:30 +0300
- Subject: Re: [RFA] Fix watchpoints when stepping over a breakpoint
- References: <20020402184333.A8464@nevyn.them.org>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Date: Tue, 2 Apr 2002 18:43:33 -0500
> From: Daniel Jacobowitz <drow@mvista.com>
>
> When I tried it I got stuck
> on the bp_shlib_event breakpoint. We would hit it, remove, single-step
> (trap expected), check where we were... and find ourselves at the
> shared library breakpoint again because of DECR_PC_AFTER_BREAK!
>
> Instead, I now collect only non-breakpoint events.
Isn't this a bit ad hoc? I think the issue of doing TRT when both a
breakpoint and a watchpoint fire for the same instruction needs a more
general solution. While ignoring breakpoints might be the Right Thing
in this particular case, I wonder what will be TRT in other cases?
Did you try to arrange for a normal breakpoint and a watchpoint on the
same instruction, and see what happens in that case, with and without
this patch?