* [remote] Where is S AA p PID currently specified?
@ 2008-06-10 19:44 Pedro Alves
2008-06-10 23:43 ` Michael Snyder
0 siblings, 1 reply; 5+ messages in thread
From: Pedro Alves @ 2008-06-10 19:44 UTC (permalink / raw)
To: gdb
Hi,
I see this in remote.c:remote_wait, while handling the 'S' and 'T'
stop reply packets:
switch (buf[0])
{
...
case 'T':
...
/* fall through */
case 'S': /* Old style status, just signal only. */
if (solibs_changed)
status->kind = TARGET_WAITKIND_LOADED;
else
{
status->kind = TARGET_WAITKIND_STOPPED;
status->value.sig = (enum target_signal)
(((fromhex (buf[1])) << 4) + (fromhex (buf[2])));
}
if (buf[3] == 'p')
{
thread_num = strtol ((const char *) &buf[4], NULL, 16);
record_currthread (thread_num);
}
goto got_status;
Where's that 'p' after S AA specified? I don't see it in the docs,
in either S or T stop reply packets description. Looking through the
file history, it seemed this had to do with some old Cisco
extensions that have since been removed, but this bit got left behind.
Can we remove it ?
--
Pedro Alves
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [remote] Where is S AA p PID currently specified?
2008-06-10 19:44 [remote] Where is S AA p PID currently specified? Pedro Alves
@ 2008-06-10 23:43 ` Michael Snyder
2008-06-10 23:58 ` Pedro Alves
0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2008-06-10 23:43 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb
On Tue, 2008-06-10 at 19:44 +0100, Pedro Alves wrote:
> Hi,
>
> I see this in remote.c:remote_wait, while handling the 'S' and 'T'
> stop reply packets:
>
[...]
> case 'S': /* Old style status, just signal only. */
> if (solibs_changed)
> status->kind = TARGET_WAITKIND_LOADED;
> else
> {
> status->kind = TARGET_WAITKIND_STOPPED;
> status->value.sig = (enum target_signal)
> (((fromhex (buf[1])) << 4) + (fromhex (buf[2])));
> }
>
> if (buf[3] == 'p')
> {
> thread_num = strtol ((const char *) &buf[4], NULL, 16);
> record_currthread (thread_num);
> }
> goto got_status;
>
>
> Where's that 'p' after S AA specified? I don't see it in the docs,
> in either S or T stop reply packets description. Looking through the
> file history, it seemed this had to do with some old Cisco
> extensions that have since been removed, but this bit got left behind.
>
> Can we remove it ?
OK, you're right -- that 'p' suffix came in between releases
4.18 and 5.0, and the earliest code has comments mentioning
Cisco kernel threads.
Nuke it!
;-)
Michael
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [remote] Where is S AA p PID currently specified?
2008-06-10 23:43 ` Michael Snyder
@ 2008-06-10 23:58 ` Pedro Alves
0 siblings, 0 replies; 5+ messages in thread
From: Pedro Alves @ 2008-06-10 23:58 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb
A Wednesday 11 June 2008 00:43:27, Michael Snyder wrote:
> On Tue, 2008-06-10 at 19:44 +0100, Pedro Alves wrote:
> > Where's that 'p' after S AA specified? I don't see it in the docs,
> > in either S or T stop reply packets description. Looking through the
> > file history, it seemed this had to do with some old Cisco
> > extensions that have since been removed, but this bit got left behind.
> >
> > Can we remove it ?
>
> OK, you're right -- that 'p' suffix came in between releases
> 4.18 and 5.0, and the earliest code has comments mentioning
> Cisco kernel threads.
>
> Nuke it!
>
> ;-)
Thanks for confirming! I'll post patch in a sec.
--
Pedro Alves
^ permalink raw reply [flat|nested] 5+ messages in thread
* [remote] Where is S AA p PID currently specified?
@ 2008-06-10 19:42 Pedro Alves
2008-06-10 23:04 ` Michael Snyder
0 siblings, 1 reply; 5+ messages in thread
From: Pedro Alves @ 2008-06-10 19:42 UTC (permalink / raw)
To: gdb
[Resend - it seems the first time didn't make it]
Hi,
I see this in remote.c:remote_wait, while handling the 'S' and 'T'
stop reply packets:
switch (buf[0])
{
...
case 'T':
...
/* fall through */
case 'S': /* Old style status, just signal only. */
if (solibs_changed)
status->kind = TARGET_WAITKIND_LOADED;
else
{
status->kind = TARGET_WAITKIND_STOPPED;
status->value.sig = (enum target_signal)
(((fromhex (buf[1])) << 4) + (fromhex (buf[2])));
}
if (buf[3] == 'p')
{
thread_num = strtol ((const char *) &buf[4], NULL, 16);
record_currthread (thread_num);
}
goto got_status;
Where's that 'p' after S AA specified? I don't see it in the docs,
in either S or T stop reply packets description. Looking through the
file history, it seemed this had to do with some old Cisco
extensions that have since been removed, but this bit got left behind.
Can we remove it ?
--
Pedro Alves
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [remote] Where is S AA p PID currently specified?
2008-06-10 19:42 Pedro Alves
@ 2008-06-10 23:04 ` Michael Snyder
0 siblings, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2008-06-10 23:04 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb
On Tue, 2008-06-10 at 20:42 +0100, Pedro Alves wrote:
> Where's that 'p' after S AA specified? I don't see it in the docs,
> in either S or T stop reply packets description. Looking through the
> file history, it seemed this had to do with some old Cisco
> extensions that have since been removed, but this bit got left behind.
Uh-oh. If that's true, it probably pre-dates the current
cvs repo. Let me look.
What gave you the impression it was related to Cisco?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-10 23:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-10 19:44 [remote] Where is S AA p PID currently specified? Pedro Alves
2008-06-10 23:43 ` Michael Snyder
2008-06-10 23:58 ` Pedro Alves
-- strict thread matches above, loose matches on Subject: below --
2008-06-10 19:42 Pedro Alves
2008-06-10 23:04 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox