Re: [WIP/RFC] MIPS registers overhaul

Kevin Buettner
2003-05-20T20:51:31Z

On May 20, 1:37pm, cgd@broadcom.com wrote:

> At Sat, 17 May 2003 00:41:10 +0000 (UTC), "Kevin Buettner" wrote:
> > Unfortunately, it isn't reasonable to use an ABI-specific RDA to debug
> > an application which uses a different ABI. It might kind of, sort of
> > work some of the time, but there are various things that won't work.
> > You've just identified one of the problems.
>
> BTW, because of this kind of problem, does it even make sense that
> when talking to a mips64 kernel but using an o32 rda (or gdbserver
> 8-), you'd use a "mips64" protocol? I.e., why wouldn't it just use
> the 32-bit mips protocol, since from you're debugging a 32-bit binary
> with a 32-bit debugging daemon...

Unfortunately, with the way things are (still) layed out for MIPS, if
you want a single GDB executable to be able to debug both 64- and 32-bit
code, it needs to use the same register width for the remote protocol.

Assuming that my recently proposed MIPS overhaul actually gets in,
we're closer to being able to dynamically change this so that a single
GDB binary can use either protocol. The constant MIPS_REGSIZE will
need to be changed so that it can be set to be either 4 or 8...

I think I have the code in a state now where this shouldn't be hard to
do.

Kevin