diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-05-28 01:12:42 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-05-28 01:12:42 +0000 |
commit | a14ed312fd86dd2c862847230931451da2e49942 (patch) | |
tree | e7a00cec4f6ebd4b2d5dd59695c802ef6997d9da /gdb/config/mips/tm-mips.h | |
parent | 3c07fb76e69e648d58d507fdb05cf8d461d87dcb (diff) | |
download | gdb-a14ed312fd86dd2c862847230931451da2e49942.zip gdb-a14ed312fd86dd2c862847230931451da2e49942.tar.gz gdb-a14ed312fd86dd2c862847230931451da2e49942.tar.bz2 |
PARAMS removal.
Diffstat (limited to 'gdb/config/mips/tm-mips.h')
-rw-r--r-- | gdb/config/mips/tm-mips.h | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 244e35a..c5cc63a 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -68,7 +68,7 @@ struct value; /* Remove useless bits from an instruction address. */ #define ADDR_BITS_REMOVE(addr) mips_addr_bits_remove(addr) -CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr)); +CORE_ADDR mips_addr_bits_remove (CORE_ADDR addr); /* Remove useless bits from the stack pointer. */ @@ -83,11 +83,11 @@ CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr)); to reach some "real" code. */ #define SKIP_PROLOGUE(pc) (mips_skip_prologue (pc, 0)) -extern CORE_ADDR mips_skip_prologue PARAMS ((CORE_ADDR addr, int lenient)); +extern CORE_ADDR mips_skip_prologue (CORE_ADDR addr, int lenient); /* Return non-zero if PC points to an instruction which will cause a step to execute both the instruction at PC and an instruction at PC+4. */ -extern int mips_step_skips_delay PARAMS ((CORE_ADDR)); +extern int mips_step_skips_delay (CORE_ADDR); #define STEP_SKIPS_DELAY_P (1) #define STEP_SKIPS_DELAY(pc) (mips_step_skips_delay (pc)) @@ -100,7 +100,7 @@ extern int mips_step_skips_delay PARAMS ((CORE_ADDR)); /* Are we currently handling a signal */ -extern int in_sigtramp PARAMS ((CORE_ADDR, char *)); +extern int in_sigtramp (CORE_ADDR, char *); #define IN_SIGTRAMP(pc, name) in_sigtramp(pc, name) /* Stack grows downward. */ @@ -150,7 +150,7 @@ extern breakpoint_from_pc_fn mips_breakpoint_from_pc; /* Given the register index, return the name of the corresponding register. */ -extern char *mips_register_name PARAMS ((int regnr)); +extern char *mips_register_name (int regnr); #define REGISTER_NAME(i) mips_register_name (i) /* Initializer for an array of names of registers. @@ -216,7 +216,7 @@ extern char *mips_register_name PARAMS ((int regnr)); of register dumps. */ #define DO_REGISTERS_INFO(_regnum, fp) mips_do_registers_info(_regnum, fp) -extern void mips_do_registers_info PARAMS ((int, int)); +extern void mips_do_registers_info (int, int); /* Total amount of space needed to store our copies of the machine's register state, the array `registers'. */ @@ -232,7 +232,7 @@ extern void mips_do_registers_info PARAMS ((int, int)); register N. NOTE: This indirectly defines the register size transfered by the GDB protocol. */ -extern int mips_register_raw_size PARAMS ((int reg_nr)); +extern int mips_register_raw_size (int reg_nr); #define REGISTER_RAW_SIZE(N) (mips_register_raw_size ((N))) @@ -242,15 +242,17 @@ extern int mips_register_raw_size PARAMS ((int reg_nr)); really 32 bit registers. This is a legacy of the 64 bit MIPS GDB protocol which transfers 64 bits for 32 bit registers. */ -extern int mips_register_convertible PARAMS ((int reg_nr)); +extern int mips_register_convertible (int reg_nr); #define REGISTER_CONVERTIBLE(N) (mips_register_convertible ((N))) -void mips_register_convert_to_virtual PARAMS ((int reg_nr, struct type *virtual_type, char *raw_buf, char *virt_buf)); +void mips_register_convert_to_virtual (int reg_nr, struct type *virtual_type, + char *raw_buf, char *virt_buf); #define REGISTER_CONVERT_TO_VIRTUAL(N,VIRTUAL_TYPE,RAW_BUF,VIRT_BUF) \ mips_register_convert_to_virtual (N,VIRTUAL_TYPE,RAW_BUF,VIRT_BUF) -void mips_register_convert_to_raw PARAMS ((struct type *virtual_type, int reg_nr, char *virt_buf, char *raw_buf)); +void mips_register_convert_to_raw (struct type *virtual_type, int reg_nr, + char *virt_buf, char *raw_buf); #define REGISTER_CONVERT_TO_RAW(VIRTUAL_TYPE,N,VIRT_BUF,RAW_BUF) \ mips_register_convert_to_raw (VIRTUAL_TYPE,N,VIRT_BUF,RAW_BUF) @@ -317,15 +319,14 @@ void mips_register_convert_to_raw PARAMS ((struct type *virtual_type, int reg_nr #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ mips_extract_return_value(TYPE, REGBUF, VALBUF) -extern void -mips_extract_return_value PARAMS ((struct type *, char[], char *)); +extern void mips_extract_return_value (struct type *, char[], char *); /* Write into appropriate registers a function return value of type TYPE, given in virtual format. */ #define STORE_RETURN_VALUE(TYPE,VALBUF) \ mips_store_return_value(TYPE, VALBUF) -extern void mips_store_return_value PARAMS ((struct type *, char *)); +extern void mips_store_return_value (struct type *, char *); /* Extract from an array REGBUF containing the (raw) register state the address in which a function should return its structure value, @@ -349,7 +350,7 @@ extern use_struct_convention_fn mips_use_struct_convention; and produces the frame's chain-pointer. */ #define FRAME_CHAIN(thisframe) (CORE_ADDR) mips_frame_chain (thisframe) -extern CORE_ADDR mips_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR mips_frame_chain (struct frame_info *); /* Define other aspects of the stack frame. */ @@ -364,7 +365,7 @@ extern CORE_ADDR mips_frame_chain PARAMS ((struct frame_info *)); /* Saved Pc. */ #define FRAME_SAVED_PC(FRAME) (mips_frame_saved_pc(FRAME)) -extern CORE_ADDR mips_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR mips_frame_saved_pc (struct frame_info *); #define FRAME_ARGS_ADDRESS(fi) (fi)->frame @@ -374,7 +375,7 @@ extern CORE_ADDR mips_frame_saved_pc PARAMS ((struct frame_info *)); Can return -1, meaning no way to tell. */ #define FRAME_NUM_ARGS(fi) (mips_frame_num_args(fi)) -extern int mips_frame_num_args PARAMS ((struct frame_info *)); +extern int mips_frame_num_args (struct frame_info *); /* Return number of bytes at start of arglist that are not really args. */ @@ -392,7 +393,7 @@ extern int mips_frame_num_args PARAMS ((struct frame_info *)); mips_find_saved_regs (frame_info); \ (frame_info)->saved_regs[SP_REGNUM] = (frame_info)->frame; \ } while (0) -extern void mips_find_saved_regs PARAMS ((struct frame_info *)); +extern void mips_find_saved_regs (struct frame_info *); /* Things needed for making the inferior call functions. */ @@ -401,22 +402,23 @@ extern void mips_find_saved_regs PARAMS ((struct frame_info *)); function calls. We don't need STACK_ALIGN, PUSH_ARGUMENTS will handle it. */ -extern CORE_ADDR mips_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); +extern CORE_ADDR mips_push_arguments (int, struct value **, CORE_ADDR, int, + CORE_ADDR); #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (mips_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) -extern CORE_ADDR mips_push_return_address PARAMS ((CORE_ADDR pc, CORE_ADDR sp)); +extern CORE_ADDR mips_push_return_address (CORE_ADDR pc, CORE_ADDR sp); #define PUSH_RETURN_ADDRESS(PC, SP) (mips_push_return_address ((PC), (SP))) /* Push an empty stack frame, to record the current PC, etc. */ #define PUSH_DUMMY_FRAME mips_push_dummy_frame() -extern void mips_push_dummy_frame PARAMS ((void)); +extern void mips_push_dummy_frame (void); /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME mips_pop_frame() -extern void mips_pop_frame PARAMS ((void)); +extern void mips_pop_frame (void); #if !GDB_MULTI_ARCH #define CALL_DUMMY { 0 } @@ -436,7 +438,7 @@ extern void mips_pop_frame PARAMS ((void)); #define CALL_DUMMY_LOCATION AT_ENTRY_POINT #define CALL_DUMMY_ADDRESS() (mips_call_dummy_address ()) -extern CORE_ADDR mips_call_dummy_address PARAMS ((void)); +extern CORE_ADDR mips_call_dummy_address (void); /* There's a mess in stack frame creation. See comments in blockframe.c near reference to INIT_FRAME_PC_FIRST. */ @@ -445,13 +447,13 @@ extern CORE_ADDR mips_call_dummy_address PARAMS ((void)); #define INIT_FRAME_PC_FIRST(fromleaf, prev) \ mips_init_frame_pc_first(fromleaf, prev) -extern void mips_init_frame_pc_first PARAMS ((int, struct frame_info *)); +extern void mips_init_frame_pc_first (int, struct frame_info *); /* Special symbol found in blocks associated with routines. We can hang mips_extra_func_info_t's off of this. */ #define MIPS_EFI_SYMBOL_NAME "__GDB_EFI_INFO__" -extern void ecoff_relocate_efi PARAMS ((struct symbol *, CORE_ADDR)); +extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR); /* Specific information about a procedure. This overlays the MIPS's PDR records, @@ -466,11 +468,11 @@ typedef struct mips_extra_func_info } *mips_extra_func_info_t; -extern void mips_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info *)); +extern void mips_init_extra_frame_info (int fromleaf, struct frame_info *); #define INIT_EXTRA_FRAME_INFO(fromleaf, fci) \ mips_init_extra_frame_info(fromleaf, fci) -extern void mips_print_extra_frame_info PARAMS ((struct frame_info * frame)); +extern void mips_print_extra_frame_info (struct frame_info *frame); #define PRINT_EXTRA_FRAME_INFO(fi) \ mips_print_extra_frame_info (fi) @@ -488,7 +490,7 @@ extern void mips_print_extra_frame_info PARAMS ((struct frame_info * frame)); but there is nothing we can do about that). */ #define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv) -extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *)); +extern struct frame_info *setup_arbitrary_frame (int, CORE_ADDR *); /* Convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */ @@ -521,20 +523,20 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *)); /* These are defined in mdebugread.c and are used in mips-tdep.c */ extern CORE_ADDR sigtramp_address, sigtramp_end; -extern void fixup_sigtramp PARAMS ((void)); +extern void fixup_sigtramp (void); /* Defined in mips-tdep.c and used in remote-mips.c */ -extern char *mips_read_processor_type PARAMS ((void)); +extern char *mips_read_processor_type (void); /* Functions for dealing with MIPS16 call and return stubs. */ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) mips_in_call_stub (pc, name) #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) mips_in_return_stub (pc, name) #define SKIP_TRAMPOLINE_CODE(pc) mips_skip_stub (pc) #define IGNORE_HELPER_CALL(pc) mips_ignore_helper (pc) -extern int mips_in_call_stub PARAMS ((CORE_ADDR pc, char *name)); -extern int mips_in_return_stub PARAMS ((CORE_ADDR pc, char *name)); -extern CORE_ADDR mips_skip_stub PARAMS ((CORE_ADDR pc)); -extern int mips_ignore_helper PARAMS ((CORE_ADDR pc)); +extern int mips_in_call_stub (CORE_ADDR pc, char *name); +extern int mips_in_return_stub (CORE_ADDR pc, char *name); +extern CORE_ADDR mips_skip_stub (CORE_ADDR pc); +extern int mips_ignore_helper (CORE_ADDR pc); #ifndef TARGET_MIPS #define TARGET_MIPS |