aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-22 15:59:11 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-22 15:59:11 +0000
commitb70d2aeea9f4cdc70d5f270f506b8f32a70138b3 (patch)
treefd39ebb6961d991ef2a7613487294eb41062022c
parent09ae86c21634e54692a2b63aac76f6d51bf582e5 (diff)
downloadgdb-b70d2aeea9f4cdc70d5f270f506b8f32a70138b3.zip
gdb-b70d2aeea9f4cdc70d5f270f506b8f32a70138b3.tar.gz
gdb-b70d2aeea9f4cdc70d5f270f506b8f32a70138b3.tar.bz2
* alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
where needed. (fetch_osf_core_registers): Likewise. (supply_gregset): Likewise.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/alpha-nat.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3bb019c..53bc8c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
+ where needed.
+ (fetch_osf_core_registers): Likewise.
+ (supply_gregset): Likewise.
+
2002-04-22 J. Brobecker <brobecker@gnat.com>
* symfile.h (get_section_index): Define.
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index fbf8155..a21346b 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -63,7 +63,7 @@ int
get_longjmp_target (CORE_ADDR *pc)
{
CORE_ADDR jb_addr;
- char raw_buffer[MAX_REGISTER_RAW_SIZE];
+ char raw_buffer[ALPHA_MAX_REGISTER_RAW_SIZE];
jb_addr = read_register (ALPHA_A0_REGNUM);
@@ -101,7 +101,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
OSF/1.2 core files. OSF5 uses different names for the register
enum list, need to handle two cases. The actual values are the
same. */
- static int core_reg_mapping[NUM_REGS] =
+ static int core_reg_mapping[ALPHA_NUM_REGS] =
{
#ifdef NCF_REGS
#define EFL NCF_REGS
@@ -127,7 +127,7 @@ fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size,
EF_PC, -1
#endif
};
- static char zerobuf[MAX_REGISTER_RAW_SIZE] =
+ static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] =
{0};
for (regno = 0; regno < NUM_REGS; regno++)
@@ -222,7 +222,7 @@ supply_gregset (gdb_gregset_t *gregsetp)
{
register int regi;
register long *regp = ALPHA_REGSET_BASE (gregsetp);
- static char zerobuf[MAX_REGISTER_RAW_SIZE] =
+ static char zerobuf[ALPHA_MAX_REGISTER_RAW_SIZE] =
{0};
for (regi = 0; regi < 31; regi++)