From ee455463711848bb2c5b9e8369dd06f4311492f2 Mon Sep 17 00:00:00 2001 From: Mark Alexander Date: Fri, 22 Nov 1996 04:50:46 +0000 Subject: * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN. (common_breakpoint): Use paddr instead of %x to print 64-bit values. (heuristic_proc_desc): Add tests for 64-bit instructions. (init_extra_frame_info, mips_push_arguments): Recognize additional registers for EABI. * remote-mips.c: Extend DDB target to allow TFTP downloads. * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS): Define. --- gdb/config/mips/tm-mips.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/config') diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index b31a64f..83f2f1d 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -163,6 +163,13 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *)); #define ZERO_REGNUM 0 /* read-only register, always 0 */ #define V0_REGNUM 2 /* Function integer return value */ #define A0_REGNUM 4 /* Loc of first arg during a subr call */ +#if MIPS_EABI + #define MIPS_LAST_ARG_REGNUM 11 /* EABI uses R4 through R11 for args */ + #define MIPS_NUM_ARG_REGS 8 +#else + #define MIPS_LAST_ARG_REGNUM 7 /* old ABI uses R4 through R7 for args */ + #define MIPS_NUM_ARG_REGS 4 +#endif #define SP_REGNUM 29 /* Contains address of top of stack */ #define RA_REGNUM 31 /* Contains return address value */ #define PS_REGNUM 32 /* Contains processor status */ -- cgit v1.1