From 7ec7e38946b9d0cc9fbbc61f587890282108de6a Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Mon, 24 Jul 2000 14:35:14 +0000 Subject: [PATCH] 2000-07-24 Elena Zannoni * 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. --- gdb/regcache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdb/regcache.c b/gdb/regcache.c index 13cded2a7af..f449189795e 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, ®isters[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 (®isters[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 -- 2.30.2