+2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
+
+ * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
+ (alpha_cannot_fetch_register): Ditto.
+ (alpha_cannot_store_register): Ditto.
+ (alpha_register_convertible): Ditto.
+ (alpha_use_struct_convention): Ditto.
+ * config/alpha/tm-alpha.h: Update copyright years.
+ (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
+ (INNER_THAN): Use core_addr_lessthan.
+ (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
+ (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
+ (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
+ (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
+ (FRAME_CHAIN): Remove unnecessary cast.
+
2002-01-18 Andrew Cagney <ac131313@redhat.com>
* NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
}
*linked_proc_desc_table = NULL;
\f
+int
+alpha_osf_in_sigtramp (CORE_ADDR pc, char *func_name)
+{
+ return (func_name != NULL && STREQ ("__sigtramp", func_name));
+}
/* Under GNU/Linux, signal handler invocations can be identified by the
designated code sequence that is used to return from a signal
return (NULL);
return (register_names[regno]);
}
+
+int
+alpha_cannot_fetch_register (int regno)
+{
+ return (regno == FP_REGNUM || regno == ZERO_REGNUM);
+}
+
+int
+alpha_cannot_store_register (int regno)
+{
+ return (regno == FP_REGNUM || regno == ZERO_REGNUM);
+}
+
+int
+alpha_register_convertible (int regno)
+{
+ return (regno >= FP0_REGNUM && regno <= FP0_REGNUM + 31);
+}
\f
/* Guaranteed to set frame->saved_regs to some values (it never leaves it
return SYMBOL_VALUE_ADDRESS (sym) + 4;
}
+int
+alpha_use_struct_convention (int gcc_p, struct type *type)
+{
+ /* Structures are returned by ref in extra arg0. */
+ return 1;
+}
+
/* alpha_software_single_step() is called just before we want to resume
the inferior, if we want to single-step it but there is no hardware
or kernel single-step support (NetBSD on Alpha, for example). We find
/* Definitions to make GDB run on an Alpha box under OSF1. This is
also used by the Alpha/Netware and Alpha/Linux targets.
- Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000
+ Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002
Free Software Foundation, Inc.
This file is part of GDB.
/* Are we currently handling a signal ? */
-#define IN_SIGTRAMP(pc, name) ((name) && STREQ ("__sigtramp", (name)))
+#define IN_SIGTRAMP(pc, name) alpha_osf_in_sigtramp ((pc), (name))
+extern int alpha_osf_in_sigtramp (CORE_ADDR, char *);
/* Stack grows downward. */
-#define INNER_THAN(lhs,rhs) ((lhs) < (rhs))
+#define INNER_THAN(lhs,rhs) core_addr_lessthan ((lhs), (rhs))
#define BREAKPOINT {0x80, 0, 0, 0} /* call_pal bpt */
#define FP_REGNUM 65 /* Virtual frame pointer */
#define CANNOT_FETCH_REGISTER(regno) \
- ((regno) == FP_REGNUM || (regno) == ZERO_REGNUM)
+ alpha_cannot_fetch_register ((regno))
+extern int alpha_cannot_fetch_register (int);
+
#define CANNOT_STORE_REGISTER(regno) \
- ((regno) == FP_REGNUM || (regno) == ZERO_REGNUM)
+ alpha_cannot_store_register ((regno))
+extern int alpha_cannot_store_register (int);
/* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */
memory format is an integer with 4 bytes or less, as the representation
of integers in floating point registers is different. */
-#define REGISTER_CONVERTIBLE(N) ((N) >= FP0_REGNUM && (N) < FP0_REGNUM + 31)
+#define REGISTER_CONVERTIBLE(N) alpha_register_convertible ((N))
+extern int alpha_register_convertible (int);
/* Convert data from raw format for register REGNUM in buffer FROM
to virtual format with type TYPE in buffer TO. */
REGISTER_RAW_SIZE (V0_REGNUM)))
/* Structures are returned by ref in extra arg0 */
-#define USE_STRUCT_CONVENTION(gcc_p, type) 1
+#define USE_STRUCT_CONVENTION(gcc_p, type) \
+ alpha_use_struct_convention ((gcc_p), (type))
+extern int alpha_use_struct_convention (int, struct type *);
\f
/* Describe the pointer in each stack frame to the previous stack frame
/* FRAME_CHAIN takes a frame's nominal address
and produces the frame's chain-pointer. */
-#define FRAME_CHAIN(thisframe) (CORE_ADDR) alpha_frame_chain (thisframe)
+#define FRAME_CHAIN(thisframe) alpha_frame_chain (thisframe)
extern CORE_ADDR alpha_frame_chain (struct frame_info *);
/* Define other aspects of the stack frame. */