This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Is stub support for the 's' packet optional or required?
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Tue, 18 Feb 2003 09:29:58 -0700
- Subject: Re: Is stub support for the 's' packet optional or required?
- References: <20030218020408.EE11C3CF2@localhost.redhat.com>
On Feb 17, 9:04pm, Andrew Cagney wrote:
> If GDB implements software single step, then the `s' packet is never
> used. Consequently, requiring the unconditional implementation of "s"
> makes little sense.
What about the situation where GDB implements software single step AND
the stub implements the 's' packet? Shouldn't GDB at least attempt to
see if the stub supports the 's' packet before deciding to never send
it?
[For remote MIPS/Linux targets, I've found some cases where GDB's
implementation of software singlestep causes some undesirable behavior
when doing the 'stepi' operation through some code that's hit by a number
of threads. Yet, when software single step is implemented in the debug
agent (and disabled in GDB), the debugging behavior is much more useful
(and sensible).]
Kevin