• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版bb48619059cec6b2fc701e339dc89c77ff3e0095 (tree)
时间2008-09-05 20:46:12
作者Ulrich Weigand <uweigand@de.i...>
CommiterUlrich Weigand

Log Message

* mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
regcache architecture instead of current_gdbarch.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
22
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+
38 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
49 (check_for_saved): Use it instead of current_gdbarch.
510 (is_arg_spill): Add gdbarch paramter. Use it instead
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -4885,11 +4885,12 @@ set_mipsfpu_auto_command (char *args, int from_tty)
48854885 void
48864886 deprecated_mips_set_processor_regs_hack (void)
48874887 {
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);
48894891 ULONGEST prid;
48904892
4891- regcache_cooked_read_unsigned (get_current_regcache (),
4892- MIPS_PRID_REGNUM, &prid);
4893+ regcache_cooked_read_unsigned (regcache, MIPS_PRID_REGNUM, &prid);
48934894 if ((prid & ~0xf) == 0x700)
48944895 tdep->mips_processor_reg_names = mips_r3041_reg_names;
48954896 }