diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-07-07 20:19:36 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-07-07 20:19:36 +0000 |
commit | a87029ef15e59af2cc0b27cb4024b0db313fa88e (patch) | |
tree | a5cc2d6f8ebdbbd957642e72e0e88cc5fe5cd2e1 /gdb/config/alpha/tm-alpha.h | |
parent | 528824cc847e5a13831dd41e5aacb34679143c94 (diff) | |
download | gdb-a87029ef15e59af2cc0b27cb4024b0db313fa88e.tar.gz |
import gdb-1999-07-07 post reformat
Diffstat (limited to 'gdb/config/alpha/tm-alpha.h')
-rw-r--r-- | gdb/config/alpha/tm-alpha.h | 62 |
1 files changed, 33 insertions, 29 deletions
diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h index bbfd2d846e0..aaa2a825725 100644 --- a/gdb/config/alpha/tm-alpha.h +++ b/gdb/config/alpha/tm-alpha.h @@ -2,21 +2,22 @@ also used by the Alpha/Netware and Alpha/Linux targets. Copyright 1993, 1994, 1995, 1996 Free Software Foundation, Inc. -This file is part of GDB. + This file is part of GDB. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #ifndef TM_ALPHA_H #define TM_ALPHA_H @@ -69,7 +70,7 @@ extern CORE_ADDR alpha_skip_prologue PARAMS ((CORE_ADDR addr, int lenient)); #define SAVED_PC_AFTER_CALL(frame) alpha_saved_pc_after_call(frame) extern CORE_ADDR -alpha_saved_pc_after_call PARAMS ((struct frame_info *)); + alpha_saved_pc_after_call PARAMS ((struct frame_info *)); /* Are we currently handling a signal ? */ @@ -79,7 +80,7 @@ alpha_saved_pc_after_call PARAMS ((struct frame_info *)); #define INNER_THAN(lhs,rhs) ((lhs) < (rhs)) -#define BREAKPOINT {0x80, 0, 0, 0} /* call_pal bpt */ +#define BREAKPOINT {0x80, 0, 0, 0} /* call_pal bpt */ /* Amount PC must be decremented by after a breakpoint. This is often the number of bytes in BREAKPOINT @@ -130,8 +131,8 @@ alpha_saved_pc_after_call PARAMS ((struct frame_info *)); #define SP_REGNUM 30 /* Contains address of top of stack */ #define RA_REGNUM 26 /* Contains return address value */ #define ZERO_REGNUM 31 /* Read-only register, always 0 */ -#define FP0_REGNUM 32 /* Floating point register 0 */ -#define FPA0_REGNUM 48 /* First float arg during a subr call */ +#define FP0_REGNUM 32 /* Floating point register 0 */ +#define FPA0_REGNUM 48 /* First float arg during a subr call */ #define FPCR_REGNUM 63 /* Floating point control register */ #define PC_REGNUM 64 /* Contains program counter */ #define FP_REGNUM 65 /* Virtual frame pointer */ @@ -172,10 +173,10 @@ alpha_saved_pc_after_call PARAMS ((struct frame_info *)); from raw format to virtual format. The alpha needs a conversion between register and memory format if the register is a floating point register and - memory format is float, as the register format must be double + memory format is float, as the register format must be double or - memory format is an integer with 4 bytes or less, as the representation - of integers in floating point registers is different. */ + 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) @@ -205,7 +206,8 @@ alpha_register_convert_to_raw PARAMS ((struct type *, int, char *, char *)); /* Store the address of the place in which to copy the structure the subroutine will return. Handled by alpha_push_arguments. */ -#define STORE_STRUCT_RETURN(addr, sp) /**/ +#define STORE_STRUCT_RETURN(addr, sp) +/**/ /* Extract from an array REGBUF containing the (raw) register state a function return value of type TYPE, and copy that, in virtual format, @@ -238,8 +240,8 @@ alpha_store_return_value PARAMS ((struct type *, char *)); /* Structures are returned by ref in extra arg0 */ #define USE_STRUCT_CONVENTION(gcc_p, type) 1 - + /* Describe the pointer in each stack frame to the previous stack frame (its caller). */ @@ -262,7 +264,7 @@ extern CORE_ADDR alpha_frame_chain PARAMS ((struct frame_info *)); #define FRAME_SAVED_PC(FRAME) (alpha_frame_saved_pc(FRAME)) extern CORE_ADDR -alpha_frame_saved_pc PARAMS ((struct frame_info *)); + alpha_frame_saved_pc PARAMS ((struct frame_info *)); /* The alpha has two different virtual pointers for arguments and locals. @@ -306,14 +308,14 @@ extern void alpha_find_saved_regs PARAMS ((struct frame_info *)); alpha_find_saved_regs (frame_info); \ (frame_info)->saved_regs[SP_REGNUM] = (frame_info)->frame; \ } while (0) - + /* Things needed for making the inferior call functions. */ #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (alpha_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) extern CORE_ADDR -alpha_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); + alpha_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); /* Push an empty stack frame, to record the current PC, etc. */ @@ -366,7 +368,7 @@ extern CORE_ADDR alpha_call_dummy_address PARAMS ((void)); /* There's a mess in stack frame creation. See comments in blockframe.c near reference to INIT_FRAME_PC_FIRST. */ -#define INIT_FRAME_PC(fromleaf, prev) /* nada */ +#define INIT_FRAME_PC(fromleaf, prev) /* nada */ #define INIT_FRAME_PC_FIRST(fromleaf, prev) \ (prev)->pc = ((fromleaf) ? SAVED_PC_AFTER_CALL ((prev)->next) : \ @@ -382,10 +384,12 @@ extern void ecoff_relocate_efi PARAMS ((struct symbol *, CORE_ADDR)); This overlays the ALPHA's PDR records, alpharead.c (ab)uses this to save memory */ -typedef struct alpha_extra_func_info { - long numargs; /* number of args to procedure (was iopt) */ - PDR pdr; /* Procedure descriptor record */ -} *alpha_extra_func_info_t; +typedef struct alpha_extra_func_info + { + long numargs; /* number of args to procedure (was iopt) */ + PDR pdr; /* Procedure descriptor record */ + } + *alpha_extra_func_info_t; /* Define the extra_func_info that mipsread.c needs. FIXME: We should define our own PDR interface, perhaps in a separate |