diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-12-05 05:17:39 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-12-05 05:17:39 +0000 |
commit | d1973055b8847315e5783ae04ab701b632fd3a8b (patch) | |
tree | 84b22fa31f480d0dbeac2740948be8118329cd33 /gdb/mips-tdep.c | |
parent | d0112f73538ba73e84082c207e597c857a97d7f2 (diff) | |
download | gdb-d1973055b8847315e5783ae04ab701b632fd3a8b.zip gdb-d1973055b8847315e5783ae04ab701b632fd3a8b.tar.gz gdb-d1973055b8847315e5783ae04ab701b632fd3a8b.tar.bz2 |
Create new file mips-tdep.h.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 7a13a22..c29c7a0 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -39,6 +39,7 @@ #include "arch-utils.h" #include "regcache.h" #include "osabi.h" +#include "mips-tdep.h" #include "opcode/mips.h" #include "elf/mips.h" @@ -57,19 +58,6 @@ enum MIPS_FPU_DOUBLE_REGSIZE = 8 }; -/* All the possible MIPS ABIs. */ - -enum mips_abi - { - MIPS_ABI_UNKNOWN = 0, - MIPS_ABI_N32, - MIPS_ABI_O32, - MIPS_ABI_N64, - MIPS_ABI_O64, - MIPS_ABI_EABI32, - MIPS_ABI_EABI64, - MIPS_ABI_LAST - }; static const char *mips_abi_string; @@ -162,6 +150,13 @@ static const char *mips_saved_regsize_string = size_auto; #define MIPS_SAVED_REGSIZE (mips_saved_regsize()) +/* Return the MIPS ABI associated with GDBARCH. */ +enum mips_abi +mips_abi (struct gdbarch *gdbarch) +{ + return gdbarch_tdep (gdbarch)->mips_abi; +} + static unsigned int mips_saved_regsize (void) { |