GNU Binutils with patches for OS216
修订版 | bb48619059cec6b2fc701e339dc89c77ff3e0095 (tree) |
---|---|
时间 | 2008-09-05 20:46:12 |
作者 | Ulrich Weigand <uweigand@de.i...> |
Commiter | Ulrich Weigand |
* mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
regcache architecture instead of current_gdbarch.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
2 | 2 | |
3 | + * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use | |
4 | + regcache architecture instead of current_gdbarch. | |
5 | + | |
6 | +2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> | |
7 | + | |
3 | 8 | * mep-tdep.c (struct mep_prologue): Add gdbarch member. |
4 | 9 | (check_for_saved): Use it instead of current_gdbarch. |
5 | 10 | (is_arg_spill): Add gdbarch paramter. Use it instead |
@@ -4885,11 +4885,12 @@ set_mipsfpu_auto_command (char *args, int from_tty) | ||
4885 | 4885 | void |
4886 | 4886 | deprecated_mips_set_processor_regs_hack (void) |
4887 | 4887 | { |
4888 | - struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); | |
4888 | + struct regcache *regcache = get_current_regcache (); | |
4889 | + struct gdbarch *gdbarch = get_regcache_arch (regcache); | |
4890 | + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); | |
4889 | 4891 | ULONGEST prid; |
4890 | 4892 | |
4891 | - regcache_cooked_read_unsigned (get_current_regcache (), | |
4892 | - MIPS_PRID_REGNUM, &prid); | |
4893 | + regcache_cooked_read_unsigned (regcache, MIPS_PRID_REGNUM, &prid); | |
4893 | 4894 | if ((prid & ~0xf) == 0x700) |
4894 | 4895 | tdep->mips_processor_reg_names = mips_r3041_reg_names; |
4895 | 4896 | } |