This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "Remote 'g' packet reply is too long" error.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]