From efe59759d8d01aa611222e4d7000e41561945741 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 17 Sep 2003 15:42:21 +0000 Subject: 2003-09-17 Andrew Cagney * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM. * gdbarch.h, gdbarch.c: Regenerate. * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update. * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update. * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update. * sparcnbsd-tdep.c: Update. --- gdb/sparc-nat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/sparc-nat.c') diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index 24c1472..a4df865 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -108,7 +108,7 @@ fetch_inferior_registers (int regno) = inferior_registers.r_ps; *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (PC_REGNUM)] = inferior_registers.r_pc; - *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (NPC_REGNUM)] + *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (DEPRECATED_NPC_REGNUM)] = inferior_registers.r_npc; *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (Y_REGNUM)] = inferior_registers.r_y; @@ -117,7 +117,7 @@ fetch_inferior_registers (int regno) deprecated_register_valid[Y_REGNUM] = 1; deprecated_register_valid[PS_REGNUM] = 1; deprecated_register_valid[PC_REGNUM] = 1; - deprecated_register_valid[NPC_REGNUM] = 1; + deprecated_register_valid[DEPRECATED_NPC_REGNUM] = 1; /* If we don't set these valid, read_register_bytes() rereads all the regs every time it is called! FIXME. */ deprecated_register_valid[WIM_REGNUM] = 1; /* Not true yet, FIXME */ @@ -261,7 +261,7 @@ store_inferior_registers (int regno) inferior_registers.r_pc = *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (PC_REGNUM)]; inferior_registers.r_npc = - *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (NPC_REGNUM)]; + *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (DEPRECATED_NPC_REGNUM)]; inferior_registers.r_y = *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (Y_REGNUM)]; @@ -318,7 +318,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, 15 * REGISTER_RAW_SIZE (G1_REGNUM)); *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (PS_REGNUM)] = gregs->r_ps; *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (PC_REGNUM)] = gregs->r_pc; - *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (NPC_REGNUM)] = gregs->r_npc; + *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (DEPRECATED_NPC_REGNUM)] = gregs->r_npc; *(int *) &deprecated_registers[DEPRECATED_REGISTER_BYTE (Y_REGNUM)] = gregs->r_y; /* My best guess at where to get the locals and input -- cgit v1.1