This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Thread awareness in remote serial protocol Z packet
- From: Earl Chew <earl_chew at agilent dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 11 Sep 2002 11:38:25 -0700
- Subject: Re: Thread awareness in remote serial protocol Z packet
- Organization: Agilent Technologies
- References: <3D7F7923.B504AA7D@agilent.com> <20020911175451.GA28440@nevyn.them.org>
Daniel Jacobowitz wrote:
> Earl wrote:
> > Perhaps extended the Z protocol to allow Zt,addr,length,id
> > (plus the corresponding change in breakpoint.c) would be sufficient
> > to allow this. Old targets presumably would ignore the ,id
> > argument and proceed as before.
>
> Either that or we'd need to specify a different packet type for
> this... gdbserver doesn't support the Z packet right now, so it
> wouldn't care; it could easily be extended to support the Z packet
> and to support thread-specific breakpoints but I haven't had a chance.
As to whether extending the Z packet is possible, I suppose it
depends on whether targets that support it explicitly check
for end-of-packet after reading the existing length field.
Do you know of any remote agents implementing Z and their behaviours?
Another related question I'm pondering is how to have the remote
agent react when one thread hits a breakpoint. My browsing of
the documentation and source suggests that gdb expects all threads
to stop when any one thread hits a breakpoint.
Is this correct?
I think that this means that mult-threaded embedded targets would
have to suspend related threads when a thread-specific breakpoint hits.
Earl
--
> ---------------------------------------------------------------------+
> Earl Chew http://www.agilent.com |
> Agilent Technologies mailto:earl_chew@agilent.com |
> Advanced Networks Division Tel: +1 604 454 3411 |
> 2500-4710 Kingsway Fax: +1 604 454 3401 |
> Burnaby BC V5H 4M2 Canada |
> ---------------------------------------------------------------------+