X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fconfig%2Falpha%2Ftm-alpha.h;h=8b3c5ba76ffbf55d86b6e38886449f0907f80614;hb=d4f3574e777abfa65c9ba134e582228f3f32a8d6;hp=bbfd2d846e07868fa9bf1174c22d89cbc7359966;hpb=392a587b0562bfd8561bc15ad2625a4f49f461f0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h index bbfd2d846e..8b3c5ba76f 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 @@ -25,12 +26,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "coff/sym.h" /* Needed for PDR below. */ #include "coff/symconst.h" -#ifdef __STDC__ struct frame_info; struct type; struct value; struct symbol; -#endif #if !defined (TARGET_BYTE_ORDER) #define TARGET_BYTE_ORDER LITTLE_ENDIAN @@ -69,7 +68,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 +78,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 +129,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 +171,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 +204,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 +238,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 +262,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 +306,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 +366,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 +382,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 @@ -406,7 +408,7 @@ init_extra_frame_info PARAMS ((struct frame_info *)); #define PRINT_EXTRA_FRAME_INFO(fi) \ { \ if (fi && fi->proc_desc && fi->proc_desc->pdr.framereg < NUM_REGS) \ - printf_filtered (" frame pointer is at %s+%d\n", \ + printf_filtered (" frame pointer is at %s+%ld\n", \ REGISTER_NAME (fi->proc_desc->pdr.framereg), \ fi->proc_desc->pdr.frameoffset); \ }