[Top] [All Lists]

Re: kgdb and Linux/MIPS

Subject: Re: kgdb and Linux/MIPS
From: Ralf Baechle <>
Date: Fri, 1 Sep 1995 21:06:07 +0200 (MET DST)
In-reply-to: <> from "Warner Losh" at Aug 30, 95 02:16:36 pm

> : 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 ...


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