From: Ulrich Weigand Date: Fri, 15 Jun 2007 22:29:52 +0000 (+0000) Subject: * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from X-Git-Tag: binutils-2_18-branchpoint~482 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a961495892f6fcdb2386428c9bb63e19f364006f;p=external%2Fbinutils.git * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from current regcache instead of calling read_register. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2bd14bf..808c9d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-06-15 Ulrich Weigand + * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from + current regcache instead of calling read_register. + +2007-06-15 Ulrich Weigand + * mep-tdep.c (current_me_module): Read from current regcache instead of calling read_register. (current_options): Likewise. 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; }