diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2009-04-01 19:13:42 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2009-04-01 19:13:42 +0000 |
commit | 865093a3bf093d4667086b0f826b5768f9a49236 (patch) | |
tree | cb34b7e43764a42ed5a3d165fe231d632b91facb /gdb/mips-tdep.c | |
parent | 5d3b6af6f9b3416184e5b87e5fd3fc4483cf6f81 (diff) | |
download | fsf-binutils-gdb-865093a3bf093d4667086b0f826b5768f9a49236.zip fsf-binutils-gdb-865093a3bf093d4667086b0f826b5768f9a49236.tar.gz fsf-binutils-gdb-865093a3bf093d4667086b0f826b5768f9a49236.tar.bz2 |
* mips-tdep.c (mips_numeric_register_alieses): New definition.
(mips_gdbarch_init): Add user registers from
mips_numeric_register_aliases.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 6c8c4c0..345053c 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -143,6 +143,15 @@ const struct register_alias mips_register_aliases[] = { { "fsr", MIPS_EMBED_FP0_REGNUM + 32 } }; +const struct register_alias mips_numeric_register_aliases[] = { +#define R(n) { #n, n } + R(0), R(1), R(2), R(3), R(4), R(5), R(6), R(7), + R(8), R(9), R(10), R(11), R(12), R(13), R(14), R(15), + R(16), R(17), R(18), R(19), R(20), R(21), R(22), R(23), + R(24), R(25), R(26), R(27), R(28), R(29), R(30), R(31), +#undef R +}; + #ifndef MIPS_DEFAULT_FPU_TYPE #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_DOUBLE #endif @@ -6058,6 +6067,11 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) user_reg_add (gdbarch, mips_register_aliases[i].name, value_of_mips_user_reg, &mips_register_aliases[i].regnum); + for (i = 0; i < ARRAY_SIZE (mips_numeric_register_aliases); i++) + user_reg_add (gdbarch, mips_numeric_register_aliases[i].name, + value_of_mips_user_reg, + &mips_numeric_register_aliases[i].regnum); + return gdbarch; } |