[PATCH] Add gdbarch_sizeof_g_packet to "struct remote_arch_state" to handle the issue that get error "Remote 'g' packet reply is too long" with qemu-system-x86_64
Joel Brobecker
brobecker@adacore.com
Mon Nov 17 10:25:00 GMT 2014
> Will GDB be hurted if it support bigger size? Maybe GDB can output a
> warning like "the size that you use is bigger than xxxxxx", And keep
> work.
> But not just tell the user "your target is cheater. It changed the
> size. I hate that. I will not work with it."
> GDB is a debugger but not a judge, right?
Yes, GDB will be hurt if we try applying bandaids for issues
we don't understand. One bandaid doesn't seem like much, but
they accumulate over time, and make long-term maintenance
a lot harder.
We need to understand what is going on before we can determine
whether the fix you are proposing is the best approach.
--
Joel
More information about the Gdb-patches
mailing list