* Remove undocumented remote procotol extension
@ 2008-06-11 0:24 Pedro Alves
2008-06-11 3:27 ` Pedro Alves
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Pedro Alves @ 2008-06-11 0:24 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
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 ?
--
Pedro Alves
[-- Attachment #2: cisco.diff --]
[-- Type: text/x-diff, Size: 1547 bytes --]
2008-06-11 Pedro Alves <pedro@codesourcery.com>
* NEW: Mention support removal for undocumented S AA p PID stop
reply packet.
* remote.c (remote_wait): Remove undocumented S AA p PID support.
---
gdb/NEWS | 6 ++++++
gdb/remote.c | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
Index: src/gdb/NEWS
===================================================================
--- src.orig/gdb/NEWS 2008-06-11 00:47:26.000000000 +0100
+++ src/gdb/NEWS 2008-06-11 00:52:20.000000000 +0100
@@ -19,6 +19,12 @@ completions will be "f1" and "f2".
qSearch:memory:
Search memory for a sequence of bytes.
+* Removed remote protocol undocumented extension
+
+ An undocumented extension to the remote protocol's `S' stop reply
+ packet that permited the stub to pass a process id was removed.
+ Remote servers shall use the `T' stop reply packet instead.
+
* The "disassemble" command now supports an optional /m modifier to print mixed
source+assembly.
Index: src/gdb/remote.c
===================================================================
--- src.orig/gdb/remote.c 2008-06-11 00:46:09.000000000 +0100
+++ src/gdb/remote.c 2008-06-11 00:46:52.000000000 +0100
@@ -3523,12 +3523,6 @@ Packet: '%s'\n"),
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;
case 'W': /* Target exited. */
{
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove undocumented remote procotol extension
2008-06-11 0:24 Remove undocumented remote procotol extension Pedro Alves
@ 2008-06-11 3:27 ` Pedro Alves
2008-06-11 4:55 ` Eli Zaretskii
2008-06-11 13:48 ` Daniel Jacobowitz
2 siblings, 0 replies; 5+ messages in thread
From: Pedro Alves @ 2008-06-11 3:27 UTC (permalink / raw)
To: gdb-patches; +Cc: Michael Snyder
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove undocumented remote procotol extension
2008-06-11 0:24 Remove undocumented remote procotol extension Pedro Alves
2008-06-11 3:27 ` Pedro Alves
@ 2008-06-11 4:55 ` Eli Zaretskii
2008-06-11 8:25 ` Thiago Jung Bauermann
2008-06-11 13:48 ` Daniel Jacobowitz
2 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2008-06-11 4:55 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
> From: Pedro Alves <pedro@codesourcery.com>
> Date: Wed, 11 Jun 2008 01:03:33 +0100
>
> Is this NEWS worthy?
Yes, I think so.
> + Remote servers shall use the `T' stop reply packet instead.
Please say "should" instead of "shall" here. Otherwise, OK.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove undocumented remote procotol extension
2008-06-11 4:55 ` Eli Zaretskii
@ 2008-06-11 8:25 ` Thiago Jung Bauermann
0 siblings, 0 replies; 5+ messages in thread
From: Thiago Jung Bauermann @ 2008-06-11 8:25 UTC (permalink / raw)
To: gdb-patches ml
On Wed, 2008-06-11 at 06:27 +0300, Eli Zaretskii wrote:
> > + Remote servers shall use the `T' stop reply packet instead.
>
> Please say "should" instead of "shall" here. Otherwise, OK.
Dang, and here I thought we were here to set new standards. :-)
Sorry, bad joke. Couldn't resist.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Remove undocumented remote procotol extension
2008-06-11 0:24 Remove undocumented remote procotol extension Pedro Alves
2008-06-11 3:27 ` Pedro Alves
2008-06-11 4:55 ` Eli Zaretskii
@ 2008-06-11 13:48 ` Daniel Jacobowitz
2 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-06-11 13:48 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
On Wed, Jun 11, 2008 at 01:03:33AM +0100, Pedro Alves wrote:
> * NEW: Mention support removal for undocumented S AA p PID stop
> reply packet.
NEWS: :-)
> * remote.c (remote_wait): Remove undocumented S AA p PID support.
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-11 12:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 0:24 Remove undocumented remote procotol extension Pedro Alves
2008-06-11 3:27 ` Pedro Alves
2008-06-11 4:55 ` Eli Zaretskii
2008-06-11 8:25 ` Thiago Jung Bauermann
2008-06-11 13:48 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox