diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-01-19 05:26:47 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-01-19 05:26:47 +0000 |
commit | 1863b3e12ad9085e10dde2b9f8b6e37e6be185d2 (patch) | |
tree | 042b2456a51c33bb9541d67f3737a1908cdc6236 /gdb/alpha-tdep.c | |
parent | edacff92c3dd845b411a931c000de65e9ebf22cd (diff) | |
download | gdb-1863b3e12ad9085e10dde2b9f8b6e37e6be185d2.tar.gz |
* 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.
Diffstat (limited to 'gdb/alpha-tdep.c')
-rw-r--r-- | gdb/alpha-tdep.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 0ec3add597a..a50000ede8c 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -144,6 +144,11 @@ struct linked_proc_info } *linked_proc_desc_table = NULL; +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 @@ -283,6 +288,24 @@ alpha_register_name (int regno) 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); +} /* Guaranteed to set frame->saved_regs to some values (it never leaves it @@ -1410,6 +1433,13 @@ alpha_call_dummy_address (void) 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 |