aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-07-21 22:25:52 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-07-21 22:25:52 +0000
commitf41603356dd6c6ff780c5f92c1a298d54229d055 (patch)
treef3335770464d7809e0d5a1db069526576d2a92c0 /gdb/regcache.c
parent6dff448f84031660d7921c2182b96d69c365cdf3 (diff)
downloadgdb-f41603356dd6c6ff780c5f92c1a298d54229d055.zip
gdb-f41603356dd6c6ff780c5f92c1a298d54229d055.tar.gz
gdb-f41603356dd6c6ff780c5f92c1a298d54229d055.tar.bz2
2000-07-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* regcache.c (read_register, read_register_bytes): Fix typos.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c4
1 files changed, 2 insertions, 2 deletions
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);
}