diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-17 14:24:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-17 14:24:31 +0000 |
commit | 627003499ddac21de88a2d00a0062e2f9407dcce (patch) | |
tree | 68526bf4dde27818e170202a302f690526f661fa /gdb/hppa-tdep.c | |
parent | 8cd5b1133931ef51359b4b88efab8f4bd59d4c23 (diff) | |
download | gdb-627003499ddac21de88a2d00a0062e2f9407dcce.zip gdb-627003499ddac21de88a2d00a0062e2f9407dcce.tar.gz gdb-627003499ddac21de88a2d00a0062e2f9407dcce.tar.bz2 |
2003-09-17 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
* gdbarch.h, gdbarch.c: Regenerate.
* arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
* d10v-tdep.c, frame.c: Update.
* hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
* hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
* ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
* mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
* mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
* ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
* remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
* remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
* sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
* v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
* config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
* config/pa/nm-hppah.h: Update.
2003-09-17 Andrew Cagney <cagney@redhat.com>
* mi/mi-main.c: Rename REGISTER_BYTE to DEPRECATED_REGISTER_BYTE.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 3037dab..de11549 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1633,7 +1633,7 @@ hppa_push_dummy_frame (void) for (regnum = FP0_REGNUM; regnum < NUM_REGS; regnum++) { - deprecated_read_register_bytes (REGISTER_BYTE (regnum), + deprecated_read_register_bytes (DEPRECATED_REGISTER_BYTE (regnum), (char *) &freg_buffer, 8); sp = push_bytes (sp, (char *) &freg_buffer, 8); } @@ -1714,7 +1714,7 @@ hppa_pop_frame (void) if (fsr[regnum]) { read_memory (fsr[regnum], (char *) &freg_buffer, 8); - deprecated_write_register_bytes (REGISTER_BYTE (regnum), + deprecated_write_register_bytes (DEPRECATED_REGISTER_BYTE (regnum), (char *) &freg_buffer, 8); } @@ -2679,7 +2679,8 @@ pa_do_registers_info (int regnum, int fpregs) /* Make a copy of gdb's save area (may cause actual reads from the target). */ for (i = 0; i < NUM_REGS; i++) - frame_register_read (deprecated_selected_frame, i, raw_regs + REGISTER_BYTE (i)); + frame_register_read (deprecated_selected_frame, i, + raw_regs + DEPRECATED_REGISTER_BYTE (i)); if (regnum == -1) pa_print_registers (raw_regs, regnum, fpregs); @@ -2723,7 +2724,8 @@ pa_do_strcat_registers_info (int regnum, int fpregs, struct ui_file *stream, /* Make a copy of gdb's save area (may cause actual reads from the target). */ for (i = 0; i < NUM_REGS; i++) - frame_register_read (deprecated_selected_frame, i, raw_regs + REGISTER_BYTE (i)); + frame_register_read (deprecated_selected_frame, i, + raw_regs + DEPRECATED_REGISTER_BYTE (i)); if (regnum == -1) pa_strcat_registers (raw_regs, regnum, fpregs, stream); @@ -2792,7 +2794,7 @@ pa_register_look_aside (char *raw_regs, int regnum, long *raw_val) if (!is_pa_2) { - raw_val[1] = *(long *) (raw_regs + REGISTER_BYTE (regnum)); + raw_val[1] = *(long *) (raw_regs + DEPRECATED_REGISTER_BYTE (regnum)); return; } @@ -4816,13 +4818,13 @@ hppa32_store_return_value (struct type *type, char *valbuf) If its a float value, then we also store it into the floating point registers. */ - deprecated_write_register_bytes (REGISTER_BYTE (28) + deprecated_write_register_bytes (DEPRECATED_REGISTER_BYTE (28) + (TYPE_LENGTH (type) > 4 ? (8 - TYPE_LENGTH (type)) : (4 - TYPE_LENGTH (type))), valbuf, TYPE_LENGTH (type)); if (TYPE_CODE (type) == TYPE_CODE_FLT) - deprecated_write_register_bytes (REGISTER_BYTE (FP4_REGNUM), + deprecated_write_register_bytes (DEPRECATED_REGISTER_BYTE (FP4_REGNUM), valbuf, TYPE_LENGTH (type)); } @@ -4833,22 +4835,22 @@ hppa64_store_return_value (struct type *type, char *valbuf) { if (TYPE_CODE (type) == TYPE_CODE_FLT) deprecated_write_register_bytes - (REGISTER_BYTE (FP4_REGNUM) + (DEPRECATED_REGISTER_BYTE (FP4_REGNUM) + DEPRECATED_REGISTER_SIZE - TYPE_LENGTH (type), valbuf, TYPE_LENGTH (type)); else if (is_integral_type(type)) deprecated_write_register_bytes - (REGISTER_BYTE (28) + (DEPRECATED_REGISTER_BYTE (28) + DEPRECATED_REGISTER_SIZE - TYPE_LENGTH (type), valbuf, TYPE_LENGTH (type)); else if (TYPE_LENGTH (type) <= 8) deprecated_write_register_bytes - (REGISTER_BYTE (28),valbuf, TYPE_LENGTH (type)); + (DEPRECATED_REGISTER_BYTE (28),valbuf, TYPE_LENGTH (type)); else if (TYPE_LENGTH (type) <= 16) { - deprecated_write_register_bytes (REGISTER_BYTE (28),valbuf, 8); + deprecated_write_register_bytes (DEPRECATED_REGISTER_BYTE (28),valbuf, 8); deprecated_write_register_bytes - (REGISTER_BYTE (29), valbuf + 8, TYPE_LENGTH (type) - 8); + (DEPRECATED_REGISTER_BYTE (29), valbuf + 8, TYPE_LENGTH (type) - 8); } } @@ -4863,11 +4865,11 @@ void hppa32_extract_return_value (struct type *type, char *regbuf, char *valbuf) { if (TYPE_CODE (type) == TYPE_CODE_FLT) - memcpy (valbuf, regbuf + REGISTER_BYTE (FP4_REGNUM), TYPE_LENGTH (type)); + memcpy (valbuf, regbuf + DEPRECATED_REGISTER_BYTE (FP4_REGNUM), TYPE_LENGTH (type)); else memcpy (valbuf, (regbuf - + REGISTER_BYTE (28) + + DEPRECATED_REGISTER_BYTE (28) + (TYPE_LENGTH (type) > 4 ? (8 - TYPE_LENGTH (type)) : (4 - TYPE_LENGTH (type)))), @@ -4885,20 +4887,22 @@ hppa64_extract_return_value (struct type *type, char *regbuf, char *valbuf) Aggregates upto 128 bits are in r28 and r29, right padded. */ if (TYPE_CODE (type) == TYPE_CODE_FLT) memcpy (valbuf, - regbuf + REGISTER_BYTE (FP4_REGNUM) + regbuf + DEPRECATED_REGISTER_BYTE (FP4_REGNUM) + DEPRECATED_REGISTER_SIZE - TYPE_LENGTH (type), TYPE_LENGTH (type)); else if (is_integral_type(type)) memcpy (valbuf, - regbuf + REGISTER_BYTE (28) + regbuf + DEPRECATED_REGISTER_BYTE (28) + DEPRECATED_REGISTER_SIZE - TYPE_LENGTH (type), TYPE_LENGTH (type)); else if (TYPE_LENGTH (type) <= 8) - memcpy (valbuf, regbuf + REGISTER_BYTE (28), TYPE_LENGTH (type)); + memcpy (valbuf, regbuf + DEPRECATED_REGISTER_BYTE (28), + TYPE_LENGTH (type)); else if (TYPE_LENGTH (type) <= 16) { - memcpy (valbuf, regbuf + REGISTER_BYTE (28), 8); - memcpy (valbuf + 8, regbuf + REGISTER_BYTE (29), TYPE_LENGTH (type) - 8); + memcpy (valbuf, regbuf + DEPRECATED_REGISTER_BYTE (28), 8); + memcpy (valbuf + 8, regbuf + DEPRECATED_REGISTER_BYTE (29), + TYPE_LENGTH (type) - 8); } } @@ -5036,7 +5040,7 @@ hppa_extract_struct_value_address (char *regbuf) the address size is equal to the size of an int* _on the host_... One possible implementation that crossed my mind is to use extract_address. */ - return (*(int *)(regbuf + REGISTER_BYTE (28))); + return (*(int *)(regbuf + DEPRECATED_REGISTER_BYTE (28))); } /* Return True if REGNUM is not a register available to the user |