aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:29:52 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:29:52 +0000
commita961495892f6fcdb2386428c9bb63e19f364006f (patch)
treeb8bb27241812608219097384db60894415fe1ea0 /gdb/mips-tdep.c
parent3d1a74ac503db24fb7bb308ad40ed10a15ddd287 (diff)
downloadgdb-a961495892f6fcdb2386428c9bb63e19f364006f.zip
gdb-a961495892f6fcdb2386428c9bb63e19f364006f.tar.gz
gdb-a961495892f6fcdb2386428c9bb63e19f364006f.tar.bz2
* mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
current regcache instead of calling read_register.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 288d974..89e91c0 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -4472,10 +4472,10 @@ void
deprecated_mips_set_processor_regs_hack (void)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
- CORE_ADDR prid;
-
- prid = read_register (MIPS_PRID_REGNUM);
+ ULONGEST prid;
+ regcache_cooked_read_unsigned (current_regcache,
+ MIPS_PRID_REGNUM, &prid);
if ((prid & ~0xf) == 0x700)
tdep->mips_processor_reg_names = mips_r3041_reg_names;
}