Re: [PATCH v2] gdb/hppa: guess g packet size

Simon Marchi
2025-11-10T20:30:38Z

On 11/10/25 3:10 PM, Sven Schnelle wrote:
>> Could we reach that place if e.g. qemu started to return a target
>> description for the hppa architecture? I suppose we can error out
>> saying something like "that target returned a target description but
>> this GDB doesn't support it for the HP-PA architecture".
>
> Ah, got it. Maybe we should default to 32 bit (as userspace is very
> likely to be 32 bit, only the kernel might be 64 bit right now), and
> print a warning in that case?

I guess we could, then there's a non-0% chance that GDB will be right
and be useful to the user. If we error out, there is a 0% change that
GDB will be useful to the user.

Simon