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: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: drow at mvista dot com, gdb-patches at sources dot redhat dot com
- Date: Mon, 15 Apr 2002 09:06:15 +0300 (IDT)
- Subject: Re: [RFA] Fix watchpoints when stepping over a breakpoint
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.