From: Elena Zannoni Date: Fri, 21 Jul 2000 22:25:52 +0000 (+0000) Subject: 2000-07-21 Elena Zannoni X-Git-Tag: newlib-1_9_0~1398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f41603356dd6c6ff780c5f92c1a298d54229d055;p=external%2Fbinutils.git 2000-07-21 Elena Zannoni * regcache.c (read_register, read_register_bytes): Fix typos. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 612c26c..3350cfb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-07-21 Elena Zannoni + + * regcache.c (read_register, read_register_bytes): Fix typos. + 2000-07-21 Michael Snyder * config/i386/tm-i386.h: treat PC and FP as unsigned. diff --git a/gdb/regcache.c b/gdb/regcache.c index 9ccaf82..13cded2 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -377,7 +377,7 @@ read_register_bytes (int inregbyte, char *myaddr, int inlen) Update it from the target. */ if (regno < NUM_REGS) target_fetch_registers (regno); - else if (regno < NUM_PSEUDO_REGS) + else if (regno < NUM_REGS + NUM_PSEUDO_REGS) ARCH_FETCH_PSEUDO_REGISTERS (regno); if (!register_valid[regno]) @@ -532,7 +532,7 @@ read_register (int regno) { if (regno < NUM_REGS) target_fetch_registers (regno); - else if (regno < NUM_PSEUDO_REGS) + else if (regno < NUM_REGS + NUM_PSEUDO_REGS) ARCH_FETCH_PSEUDO_REGISTERS (regno); }