This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: "Remote 'g' packet reply is too long" error.
- From: Pedro Alves <palves at redhat dot com>
- To: Mehmet Ali SarÄkaya <sarikayameh at gmail dot com>, gdb-patches at sourceware dot org
- Date: Tue, 18 Aug 2015 12:23:52 +0100
- Subject: Re: "Remote 'g' packet reply is too long" error.
- Authentication-results: sourceware.org; auth=none
- References: <CAPbjx3+5aH3+b8fnzCOVsNAhSfRjCQNyW6VQxknp01fVfDUegQ at mail dot gmail dot com>
On 08/14/2015 06:20 AM, Mehmet Ali SarÄkaya wrote:
> https://sourceware.org/bugzilla/attachment.cgi?id=8512&action=edit
>
> The attachment includes gdb-7.9/gdb/remote.c patch file.
>
>
> I used this patch for solving "Remote 'g' packet reply is too long"
> error. This patch solves problems if you take "Remote 'g' packet reply
> is too long" error.
> I tested it with gdb 7.9 but it can also be a solution for older version.
>
> After applying this patch, gdb must recompile.
This issue is that when that error happens, it means that qemu changed
the target architecture/mode, e.g., 32-bit -> 64-bit, and is now sending
64-bit registers to gdb, while gdb is still expecting 32-bit registers.
Simply suppressing the warning doesn't really solve anything; from
that point on, the contents of registers will all be wrong.
Thanks,
Pedro Alves