[rfc] Adjust address size on MIPS
Daniel Jacobowitz
drow@false.org
Fri Aug 3 19:36:00 GMT 2007
On Fri, Aug 03, 2007 at 09:28:23PM +0200, Mark Kettenis wrote:
> Sorry, I meant to write "shouldn't PROPERTY_GP64 have been set in the
> first place.
>
> Or differently phrased, if we receive a g packet with 64-bit we set
> PROPERTY_GP64 isn't it? So shouldn't we use that property to set
> decide whether we should sign extend the values in m packets?
Yes. That's what this patch (hopefully) will do: if we detect 64-bit
registers, tell the rest of GDB to assume 64-bit addresses. The
problem comes from the default address size being the pointer size,
and all the attendant MIPS ABI confusion.
> I guess the fundamental problem here is that there is no consensus
> about how gdb should handle running 32-bit mips code on a 64-bit cpu.
> Should it present the isa of the executable, or should it present the
> isa of the hardware the executable is running on.
Amen. I've tried to improve this lately, but it's still rather a mess.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list