List Info

Thread: Where is S AA p PID currently specified?




Where is S AA p PID currently specified?
country flaguser name
United States
2008-06-10 14:42:06
[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

Re: Where is S AA p PID currently specified?
country flaguser name
United States
2008-06-10 18:04:20
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?



[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )