This patch is part of the Mips CFI work started by Kevin Buettner.
As requested, I am splitting the previously posted patch into multiple
small patches.
To get DWARF2 CFI unwinding to work, SP_REGNUM needs to refer to the
cooked register number, not the raw register number.
2004-06-21 Martin Hunt <hunt@redhat.com>
Kevin Buettner <kevinb@redhat.com>
* config/mips/tm-mips.h (SP_REGNUM): Delete define.
* mips-tdep.h (MIPS_SP_REGNUM): Define.
* mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
to set_gdbarch_sp_regnum(). Use cooked register number.
(SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.