remote protocol extension for step out of range
Andrew Cagney
ac131313@cygnus.com
Mon Feb 5 10:17:00 GMT 2001
"J.T. Conklin" wrote:
> >From the protocol perspective, I don't think it would work any
> differently than stepping or continuing a given task. Currently
> remote_resume() will send a "set thread" packet if the target's
> current thread is different than GDB's. I didn't change this for
> the new packets, so the debug agent will be able to determine what
> thread the step range is for.
If I understand the existing code correctly, you can only do this
step-range thing for a single thread. If something else happens then
that request is dropped on the floor.
For instance, GDB does a step out of range for thread T1. While this is
happening, thread T2 hits a breakpoint so the target stops. The user
then step out of range T2. I suspect that GDB either:
o forgets that it is step out of ranging T1
o reverts to single stepping for T1
the protocol will certainly only allow GDB to step-out-of-range one
thread.
Andrew
More information about the Gdb
mailing list