aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-07-24 14:35:14 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-07-24 14:35:14 +0000
commit7ec7e38946b9d0cc9fbbc61f587890282108de6a (patch)
tree5ce7dd656db77d2aec8375bf9f42a4a63207362f /gdb/regcache.c
parent7f1b25859d7894b8ec513894c42352243988e6a5 (diff)
downloadgdb-7ec7e38946b9d0cc9fbbc61f587890282108de6a.zip
gdb-7ec7e38946b9d0cc9fbbc61f587890282108de6a.tar.gz
gdb-7ec7e38946b9d0cc9fbbc61f587890282108de6a.tar.bz2
2000-07-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdbarch.sh: Add FETCH_PSEUDO_REGISTER and STORE_PSEUDO_REGISTER to the gdbarch structure. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * inferior.h (FETCH_PSEUDO_REGISTER, STORE_PSEUDO_REGISTER): Delete macros. * regcache.c (write_register, read_register, write_register_bytes, write_register_gen, read_register_bytes, read_register_gen): Rename ARCH_FECTH_PSEUDO_REGISTERS to FETCH_PSEUDO_REGISTERS and ARCH_STORE_PSEUDO_REGISTER to STORE_PSEUDO_REGISTER.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 13cded2..f449189 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -378,7 +378,7 @@ read_register_bytes (int inregbyte, char *myaddr, int inlen)
if (regno < NUM_REGS)
target_fetch_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_FETCH_PSEUDO_REGISTERS (regno);
+ FETCH_PSEUDO_REGISTER (regno);
if (!register_valid[regno])
error ("read_register_bytes: Couldn't update register %d.", regno);
@@ -407,7 +407,7 @@ read_register_gen (int regno, char *myaddr)
if (regno < NUM_REGS)
target_fetch_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_FETCH_PSEUDO_REGISTERS (regno);
+ FETCH_PSEUDO_REGISTER (regno);
}
memcpy (myaddr, &registers[REGISTER_BYTE (regno)],
REGISTER_RAW_SIZE (regno));
@@ -456,7 +456,7 @@ write_register_gen (int regno, char *myaddr)
if (regno < NUM_REGS)
target_store_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_STORE_PSEUDO_REGISTERS (regno);
+ STORE_PSEUDO_REGISTER (regno);
}
/* Copy INLEN bytes of consecutive data from memory at MYADDR
@@ -510,7 +510,7 @@ write_register_bytes (int myregstart, char *myaddr, int inlen)
if (regno < NUM_REGS)
target_store_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_STORE_PSEUDO_REGISTERS (regno);
+ STORE_PSEUDO_REGISTER (regno);
}
}
}
@@ -533,7 +533,7 @@ read_register (int regno)
if (regno < NUM_REGS)
target_fetch_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_FETCH_PSEUDO_REGISTERS (regno);
+ FETCH_PSEUDO_REGISTER (regno);
}
return (extract_unsigned_integer (&registers[REGISTER_BYTE (regno)],
@@ -639,7 +639,7 @@ write_register (int regno, LONGEST val)
if (regno < NUM_REGS)
target_store_registers (regno);
else if (regno < NUM_REGS + NUM_PSEUDO_REGS)
- ARCH_STORE_PSEUDO_REGISTERS (regno);
+ STORE_PSEUDO_REGISTER (regno);
}
void