diff options
Diffstat (limited to 'gdb/remote-vxsparc.c')
-rw-r--r-- | gdb/remote-vxsparc.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c index 8b55428..339b99f 100644 --- a/gdb/remote-vxsparc.c +++ b/gdb/remote-vxsparc.c @@ -92,18 +92,18 @@ vx_read_register (int regno) as defined in "tm-sparc.h". */ bcopy (&sparc_greg_packet[SPARC_R_G0], - &deprecated_registers[REGISTER_BYTE (G0_REGNUM)], + &deprecated_registers[DEPRECATED_REGISTER_BYTE (G0_REGNUM)], 32 * SPARC_GREG_SIZE); bcopy (&sparc_greg_packet[SPARC_R_Y], - &deprecated_registers[REGISTER_BYTE (Y_REGNUM)], 6 * SPARC_GREG_SIZE); + &deprecated_registers[DEPRECATED_REGISTER_BYTE (Y_REGNUM)], 6 * SPARC_GREG_SIZE); /* Now write the local and in registers to the register window spill area in the frame. VxWorks does not do this for the active frame automatically; it greatly simplifies debugging. */ - sp = extract_unsigned_integer (&deprecated_registers[REGISTER_BYTE (SP_REGNUM)], + sp = extract_unsigned_integer (&deprecated_registers[DEPRECATED_REGISTER_BYTE (SP_REGNUM)], REGISTER_RAW_SIZE (SP_REGNUM)); - write_memory (sp, &deprecated_registers[REGISTER_BYTE (L0_REGNUM)], + write_memory (sp, &deprecated_registers[DEPRECATED_REGISTER_BYTE (L0_REGNUM)], 16 * REGISTER_RAW_SIZE (L0_REGNUM)); /* If the target has floating point registers, fetch them. @@ -116,17 +116,17 @@ vx_read_register (int regno) net_read_registers (sparc_fpreg_packet, SPARC_FPREG_PLEN, PTRACE_GETFPREGS); bcopy (&sparc_fpreg_packet[SPARC_R_FP0], - &deprecated_registers[REGISTER_BYTE (FP0_REGNUM)], + &deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)], 32 * SPARC_FPREG_SIZE); bcopy (&sparc_fpreg_packet[SPARC_R_FSR], - &deprecated_registers[REGISTER_BYTE (FPS_REGNUM)], + &deprecated_registers[DEPRECATED_REGISTER_BYTE (FPS_REGNUM)], 1 * SPARC_FPREG_SIZE); } else { - bzero (&deprecated_registers[REGISTER_BYTE (FP0_REGNUM)], + bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)], 32 * SPARC_FPREG_SIZE); - bzero (&deprecated_registers[REGISTER_BYTE (FPS_REGNUM)], + bzero (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPS_REGNUM)], 1 * SPARC_FPREG_SIZE); } @@ -157,16 +157,16 @@ vx_write_register (int regno) if (regno >= 0) { if ((G0_REGNUM <= regno && regno <= I7_REGNUM) - || (Y_REGNUM <= regno && regno <= NPC_REGNUM)) + || (Y_REGNUM <= regno && regno <= DEPRECATED_NPC_REGNUM)) in_fp_regs = 0; else in_gp_regs = 0; } if (in_gp_regs) { - bcopy (&deprecated_registers[REGISTER_BYTE (G0_REGNUM)], + bcopy (&deprecated_registers[DEPRECATED_REGISTER_BYTE (G0_REGNUM)], &sparc_greg_packet[SPARC_R_G0], 32 * SPARC_GREG_SIZE); - bcopy (&deprecated_registers[REGISTER_BYTE (Y_REGNUM)], + bcopy (&deprecated_registers[DEPRECATED_REGISTER_BYTE (Y_REGNUM)], &sparc_greg_packet[SPARC_R_Y], 6 * SPARC_GREG_SIZE); net_write_registers (sparc_greg_packet, SPARC_GREG_PLEN, PTRACE_SETREGS); @@ -176,9 +176,9 @@ vx_write_register (int regno) if (regno < 0 || (L0_REGNUM <= regno && regno <= I7_REGNUM)) { - sp = extract_unsigned_integer (&deprecated_registers[REGISTER_BYTE (SP_REGNUM)], + sp = extract_unsigned_integer (&deprecated_registers[DEPRECATED_REGISTER_BYTE (SP_REGNUM)], REGISTER_RAW_SIZE (SP_REGNUM)); - write_memory (sp, &deprecated_registers[REGISTER_BYTE (L0_REGNUM)], + write_memory (sp, &deprecated_registers[DEPRECATED_REGISTER_BYTE (L0_REGNUM)], 16 * REGISTER_RAW_SIZE (L0_REGNUM)); } } @@ -187,9 +187,9 @@ vx_write_register (int regno) if (in_fp_regs && target_has_fp) { - bcopy (&deprecated_registers[REGISTER_BYTE (FP0_REGNUM)], + bcopy (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FP0_REGNUM)], &sparc_fpreg_packet[SPARC_R_FP0], 32 * SPARC_FPREG_SIZE); - bcopy (&deprecated_registers[REGISTER_BYTE (FPS_REGNUM)], + bcopy (&deprecated_registers[DEPRECATED_REGISTER_BYTE (FPS_REGNUM)], &sparc_fpreg_packet[SPARC_R_FSR], 1 * SPARC_FPREG_SIZE); net_write_registers (sparc_fpreg_packet, SPARC_FPREG_PLEN, |