This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: regression in remote.c in remote_threads_info for qfThreadInfo/qsThreadInfo with the introduction of read_ptid
- From: Pedro Alves <pedro at codesourcery dot com>
- To: archer at sourceware dot org
- Cc: Andrew Sutherland <sombrero at alum dot mit dot edu>
- Date: Thu, 10 Sep 2009 11:11:24 +0100
- Subject: Re: regression in remote.c in remote_threads_info for qfThreadInfo/qsThreadInfo with the introduction of read_ptid
- References: <h8a2ju$eq8$1@ger.gmane.org>
On Thursday 10 September 2009 06:25:17, Andrew Sutherland wrote:
> The use of read_ptid replaced use of strtoul. strtoul eats leading
> whitespace, read_ptid does not.
>
> The protocol documentation explicitly provides for the existence of
> whitespace: `m thread-id' and `m thread-id,thread-id...'
Note that a bit above it reads:
"Like the descriptions of the other packets, each description here has a template showing the packet's
overall syntax, followed by an explanation of the packet's meaning. We include spaces in some of the
templates for clarity; these are not part of the packet's syntax. No GDB packet uses
spaces to separate its components."
--
Pedro Alves