Remove undocumented remote procotol extension

Pedro Alves pedro@codesourcery.com
Wed Jun 11 03:27:00 GMT 2008


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



More information about the Gdb-patches mailing list