This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n}
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Hui Zhu <teawater at gmail dot com>, Eli Zaretskii <eliz at gnu dot org>
- Date: Sun, 15 Aug 2010 19:46:54 +0100
- Subject: Re: [RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n}
- References: <AANLkTikWCw3=_Dqve-aWj7R6tcqMenUapkf2bdR8i_op@mail.gmail.com>
On Sunday 15 August 2010 08:16:34, Hui Zhu wrote:
> Sending packet: $QTFrame:ffffffff#fa...Packet received: OK
I think it is a bug that this is assuming 32-bit, two's complement
on both client/server sides. (not sure it that was what you were
referring to). IMO, negatives should have an explicit '-' encoding; in
this case, "$QTFrame:-1". Note sure if the RSP docs mention something
about this. We are careful in some cases (passing thread id's,
I think, is one case), though clearly not everywhere.
--
Pedro Alves