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: Sun, 3 Sep 1995 02:35:15 +0200 (MET DST)
In-reply-to: <199509021104.NAA19454@newton.waldorf-gmbh.de> from "Andreas Busse" at Sep 2, 95 01:04:32 pm
Hi,

>  > I intend to change struct pt_regs & SAVE_ALL/RESTORE_ALL anyway.
>  > They really save to much on the stack.  It's probably the best
>  > when the remote debugging support in the kernel that you have to
>  > hack anyway fakes the stack order for GDB or so.  Will have to dive
>  > into the internal of GDB ...
> 
> What exactly do you want to leave away? I cannot imagine a single
> register that could be left away...

All the s-registers are being saved by the C compiler.  It's therefore
useless work to save them on the stack.  Only the switch_to() stuff
really needs to save them.  And switch_to() is MUCH less often being
executed than SAVE_ALL/RESTORE_ALL.

   Ralf

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