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: Andrew Cagney <ac131313 at cygnus dot com>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: drow at mvista dot com, gdb-patches at sources dot redhat dot com
- Date: Thu, 18 Apr 2002 21:35:05 -0400
- Subject: Re: [RFA] Fix watchpoints when stepping over a breakpoint
- References: <Pine.SUN.3.91.1020415090228.3798F-100000@is>
> On Sun, 14 Apr 2002, Andrew Cagney wrote:
>
>
>> As far as I can tell, the i386 backend can't locally differentiate
>> between a single step trap or a breakpoint trap.
>
>
> Really? I thought the single-step bit in EFLAGS should be set if we are
> stepping.
>
> In general, I'd love to see changes in GDB that would delegate more to
> the backend. I think GDB's application level tries to second-quess the
> target too much, which is hard without having all the target-dependent
> details. This is particularly true in the area that started this thread.
> GDB should request more information from the backend instead of trying to
> figure that out on its own, IMHO.
I suspect I need two bits of information: the stop signal and the
hardware registers. I didn't know the single-step bit would remain set.
I'll try to give it another go (but don't hold your breath :-)
Andrew