This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Remove undocumented remote procotol extension
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Michael Snyder <msnyder at specifix dot com>
- Date: Wed, 11 Jun 2008 01:08:16 +0100
- Subject: Re: Remove undocumented remote procotol extension
- References: <200806110103.33301.pedro@codesourcery.com>
A Wednesday 11 June 2008 01:03:33, Pedro Alves escreveu:
> Hi,
>
> Following up on,
>
> [remote] Where is S AA p PID currently specified?
> http://sourceware.org/ml/gdb/2008-06/msg00081.html
>
> Here is the patch that removes the undocumented extension.
>
> Is this NEWS worthy? If so, NEWS change included.
>
> OK ?
For the record, it seems it was used to report some the kernel mode
in the stop reply. There was PDEBUG ('k') and KDEBUG ('p').
if (buf[3] == 'p')
{
/* Export Cisco kernel mode as a convenience variable
(so that it can be used in the GDB prompt if desired). */
if (cisco_kernel_mode == 1)
set_internalvar (lookup_internalvar ("cisco_kernel_mode"),
value_from_string ("PDEBUG-"));
cisco_kernel_mode = 0;
thread_num = strtol ((const char *) &buf[4], NULL, 16);
record_currthread (thread_num);
}
else if (buf[3] == 'k')
{
/* Export Cisco kernel mode as a convenience variable
(so that it can be used in the GDB prompt if desired). */
if (cisco_kernel_mode == 1)
set_internalvar (lookup_internalvar ("cisco_kernel_mode"),
value_from_string ("KDEBUG-"));
cisco_kernel_mode = 1;
}
For some reason, Andrew Cagney left that 'p' in, when removing
the cisco bits.
--
Pedro Alves