linux-mips-fnet
[Top] [All Lists]

Re: kgdb and Linux/MIPS

To: linux-mips@fnet.fr
Subject: Re: kgdb and Linux/MIPS
From: Ralf Baechle <ralf@waldorf-gmbh.de>
Date: Fri, 1 Sep 1995 21:06:07 +0200 (MET DST)
In-reply-to: <199508302016.OAA04854@rover.village.org> from "Warner Losh" at Aug 30, 95 02:16:36 pm
Hi,

> : a) change struct pt_regs and all associated macros and functions
> 
> I like this option the best.  I like
> 
> : b) fake the values of zero (always 0 anyway) and k0,k1
> 
> less, but if $0 and $27 and $26 never change, then it would be
> acceptible.

You need quite fancy routines if you want to save ALL general purpose
registers.  That works only if you use an additional register, eg.
the "linked address register".  Which again destroys that register.
GDB wants to have all registers in a stackframe - but that's impossible ...

   Ralf

<Prev in Thread] Current Thread [Next in Thread>