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 | |
parent | 3c07fb76e69e648d58d507fdb05cf8d461d87dcb (diff) | |
download | gdb-a14ed312fd86dd2c862847230931451da2e49942.zip gdb-a14ed312fd86dd2c862847230931451da2e49942.tar.gz gdb-a14ed312fd86dd2c862847230931451da2e49942.tar.bz2 |
PARAMS removal.
Diffstat (limited to 'gdb/config')
94 files changed, 406 insertions, 453 deletions
diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h index 7a884a4..eef74f3 100644 --- a/gdb/config/a29k/tm-a29k.h +++ b/gdb/config/a29k/tm-a29k.h @@ -508,7 +508,9 @@ extern CORE_ADDR frame_locals_address (); because registers get renumbered on the a29k without getting saved. */ struct frame_info; -void a29k_get_saved_register PARAMS ((char *raw_buffer, int *optimized, CORE_ADDR * addrp, struct frame_info * frame, int regnum, enum lval_type * lvalp)); +void a29k_get_saved_register (char *raw_buffer, int *optimized, + CORE_ADDR * addrp, struct frame_info *frame, + int regnum, enum lval_type *lvalp); #define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \ a29k_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) @@ -713,4 +715,4 @@ processor_type; "frame" or "info frame" command. */ #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 *); diff --git a/gdb/config/a29k/tm-vx29k.h b/gdb/config/a29k/tm-vx29k.h index 5d9866f..02b2703 100644 --- a/gdb/config/a29k/tm-vx29k.h +++ b/gdb/config/a29k/tm-vx29k.h @@ -177,7 +177,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* VxWorks adjusts the PC after a breakpoint has been hit. */ @@ -207,7 +207,7 @@ extern int get_longjmp_target PARAMS ((CORE_ADDR *)); val = value_cast (builtin_type_int, val); \ } while (0) -extern int vx29k_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); +extern int vx29k_frame_chain_valid (CORE_ADDR, struct frame_info *); #define FRAME_CHAIN_VALID(chain, thisframe) vx29k_frame_chain_valid (chain, thisframe) extern CORE_ADDR frame_saved_call_site (); diff --git a/gdb/config/alpha/nm-linux.h b/gdb/config/alpha/nm-linux.h index 979b817..062d4ff 100644 --- a/gdb/config/alpha/nm-linux.h +++ b/gdb/config/alpha/nm-linux.h @@ -30,8 +30,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* ptrace register ``addresses'' are absolute. */ diff --git a/gdb/config/alpha/nm-osf.h b/gdb/config/alpha/nm-osf.h index df0030a..f102fbd 100644 --- a/gdb/config/alpha/nm-osf.h +++ b/gdb/config/alpha/nm-osf.h @@ -25,8 +25,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* ptrace register ``addresses'' are absolute. */ diff --git a/gdb/config/alpha/nm-osf2.h b/gdb/config/alpha/nm-osf2.h index dfbff81..3d9105f 100644 --- a/gdb/config/alpha/nm-osf2.h +++ b/gdb/config/alpha/nm-osf2.h @@ -45,7 +45,7 @@ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); /* poll() doesn't seem to work properly for /proc in this version of the OS. If we only specify POLLPRI, things hang. It seems to get better when we set diff --git a/gdb/config/alpha/tm-alpha.h b/gdb/config/alpha/tm-alpha.h index 3755993..2b3e5ac 100644 --- a/gdb/config/alpha/tm-alpha.h +++ b/gdb/config/alpha/tm-alpha.h @@ -59,7 +59,7 @@ struct symbol; to reach some "real" code. */ #define SKIP_PROLOGUE(pc) (alpha_skip_prologue(pc, 0)) -extern CORE_ADDR alpha_skip_prologue PARAMS ((CORE_ADDR addr, int lenient)); +extern CORE_ADDR alpha_skip_prologue (CORE_ADDR addr, int lenient); /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines @@ -67,8 +67,7 @@ extern CORE_ADDR alpha_skip_prologue PARAMS ((CORE_ADDR addr, int lenient)); some instructions. */ #define SAVED_PC_AFTER_CALL(frame) alpha_saved_pc_after_call(frame) -extern CORE_ADDR - alpha_saved_pc_after_call PARAMS ((struct frame_info *)); +extern CORE_ADDR alpha_saved_pc_after_call (struct frame_info *); /* Are we currently handling a signal ? */ @@ -184,7 +183,7 @@ extern CORE_ADDR #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM, TYPE, FROM, TO) \ alpha_register_convert_to_virtual (REGNUM, TYPE, FROM, TO) extern void -alpha_register_convert_to_virtual PARAMS ((int, struct type *, char *, char *)); +alpha_register_convert_to_virtual (int, struct type *, char *, char *); /* Convert data from virtual format with type TYPE in buffer FROM to raw format for register REGNUM in buffer TO. */ @@ -192,7 +191,7 @@ alpha_register_convert_to_virtual PARAMS ((int, struct type *, char *, char *)); #define REGISTER_CONVERT_TO_RAW(TYPE, REGNUM, FROM, TO) \ alpha_register_convert_to_raw (TYPE, REGNUM, FROM, TO) extern void -alpha_register_convert_to_raw PARAMS ((struct type *, int, char *, char *)); +alpha_register_convert_to_raw (struct type *, int, char *, char *); /* Return the GDB type object for the "standard" data type of data in register N. */ @@ -213,16 +212,14 @@ alpha_register_convert_to_raw PARAMS ((struct type *, int, char *, char *)); #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ alpha_extract_return_value(TYPE, REGBUF, VALBUF) -extern void -alpha_extract_return_value PARAMS ((struct type *, char *, char *)); +extern void alpha_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) \ alpha_store_return_value(TYPE, VALBUF) -extern void -alpha_store_return_value PARAMS ((struct type *, char *)); +extern void alpha_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, @@ -247,7 +244,7 @@ alpha_store_return_value PARAMS ((struct type *, char *)); and produces the frame's chain-pointer. */ #define FRAME_CHAIN(thisframe) (CORE_ADDR) alpha_frame_chain (thisframe) -extern CORE_ADDR alpha_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR alpha_frame_chain (struct frame_info *); /* Define other aspects of the stack frame. */ @@ -261,8 +258,7 @@ extern CORE_ADDR alpha_frame_chain PARAMS ((struct frame_info *)); /* Saved Pc. */ #define FRAME_SAVED_PC(FRAME) (alpha_frame_saved_pc(FRAME)) -extern CORE_ADDR - alpha_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR alpha_frame_saved_pc (struct frame_info *); /* The alpha has two different virtual pointers for arguments and locals. @@ -298,7 +294,7 @@ extern CORE_ADDR ways in the stack frame. sp is even more special: the address we return for it IS the sp for the next frame. */ -extern void alpha_find_saved_regs PARAMS ((struct frame_info *)); +extern void alpha_find_saved_regs (struct frame_info *); #define FRAME_INIT_SAVED_REGS(frame_info) \ do { \ @@ -313,19 +309,17 @@ extern void alpha_find_saved_regs PARAMS ((struct frame_info *)); #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 (int, struct value **, CORE_ADDR, int, CORE_ADDR); /* Push an empty stack frame, to record the current PC, etc. */ #define PUSH_DUMMY_FRAME alpha_push_dummy_frame() -extern void -alpha_push_dummy_frame PARAMS ((void)); +extern void alpha_push_dummy_frame (void); /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME alpha_pop_frame() -extern void -alpha_pop_frame PARAMS ((void)); +extern void alpha_pop_frame (void); /* Alpha OSF/1 inhibits execution of code on the stack. But there is no need for a dummy on the alpha. PUSH_ARGUMENTS @@ -346,7 +340,7 @@ alpha_pop_frame PARAMS ((void)); #define CALL_DUMMY_BREAKPOINT_OFFSET (0) -extern CORE_ADDR alpha_call_dummy_address PARAMS ((void)); +extern CORE_ADDR alpha_call_dummy_address (void); #define CALL_DUMMY_ADDRESS() alpha_call_dummy_address() /* Insert the specified number of args and function address @@ -376,7 +370,7 @@ extern CORE_ADDR alpha_call_dummy_address PARAMS ((void)); alpha_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 ALPHA's PDR records, @@ -402,8 +396,7 @@ typedef struct alpha_extra_func_info alpha_extra_func_info_t proc_desc; #define INIT_EXTRA_FRAME_INFO(fromleaf, fci) init_extra_frame_info(fci) -extern void -init_extra_frame_info PARAMS ((struct frame_info *)); +extern void init_extra_frame_info (struct frame_info *); #define PRINT_EXTRA_FRAME_INFO(fi) \ { \ @@ -424,7 +417,7 @@ init_extra_frame_info PARAMS ((struct frame_info *)); multiple functions with the same SP that are at different stack levels. */ #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 *); /* This is used by heuristic_proc_start. It should be shot it the head. */ #ifndef VM_MIN_ADDRESS @@ -476,6 +469,7 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *)); #define FRAME_PAST_SIGTRAMP_FRAME(frame, pc) \ (alpha_osf_skip_sigtramp_frame (frame, pc)) -extern CORE_ADDR alpha_osf_skip_sigtramp_frame PARAMS ((struct frame_info *, CORE_ADDR)); +extern CORE_ADDR alpha_osf_skip_sigtramp_frame (struct frame_info *, + CORE_ADDR); #endif /* TM_ALPHA_H */ diff --git a/gdb/config/alpha/tm-alphalinux.h b/gdb/config/alpha/tm-alphalinux.h index a2a993e..833dbf9 100644 --- a/gdb/config/alpha/tm-alphalinux.h +++ b/gdb/config/alpha/tm-alphalinux.h @@ -26,7 +26,7 @@ /* Are we currently handling a signal ? */ -extern long alpha_linux_sigtramp_offset PARAMS ((CORE_ADDR)); +extern long alpha_linux_sigtramp_offset (CORE_ADDR); #undef IN_SIGTRAMP #define IN_SIGTRAMP(pc, name) (alpha_linux_sigtramp_offset (pc) >= 0) diff --git a/gdb/config/arc/tm-arc.h b/gdb/config/arc/tm-arc.h index a6531a5..0eb4e75 100644 --- a/gdb/config/arc/tm-arc.h +++ b/gdb/config/arc/tm-arc.h @@ -40,7 +40,7 @@ #define SKIP_PROLOGUE(pc) (arc_skip_prologue (pc, 0)) #define SKIP_PROLOGUE_FRAMELESS_P(pc) (arc_skip_prologue (pc, 1)) -extern CORE_ADDR arc_skip_prologue PARAMS ((CORE_ADDR, int)); +extern CORE_ADDR arc_skip_prologue (CORE_ADDR, int); /* Sequence of bytes for breakpoint instruction. ??? The current value is "sr -1,[-1]" and is for the simulator only. @@ -62,7 +62,7 @@ extern CORE_ADDR arc_skip_prologue PARAMS ((CORE_ADDR, int)); /* We don't have a reliable single step facility. ??? We do have a cycle single step facility, but that won't work. */ #define SOFTWARE_SINGLE_STEP_P 1 -extern void arc_software_single_step PARAMS ((unsigned int, int)); +extern void arc_software_single_step (unsigned int, int); #define SOFTWARE_SINGLE_STEP(sig,bp_p) arc_software_single_step (sig, bp_p) /* FIXME: Need to set STEP_SKIPS_DELAY. */ @@ -277,7 +277,7 @@ extern void arc_software_single_step PARAMS ((unsigned int, int)); #define FRAME_SAVED_PC(frame) (arc_frame_saved_pc (frame)) struct frame_info; /* in case frame.h not included yet */ -CORE_ADDR arc_frame_saved_pc PARAMS ((struct frame_info *)); +CORE_ADDR arc_frame_saved_pc (struct frame_info *); /* If the argument is on the stack, it will be here. We cache this value in the frame info if we've already looked it up. */ diff --git a/gdb/config/arm/tm-embed.h b/gdb/config/arm/tm-embed.h index 5e9375c..c2a856b 100644 --- a/gdb/config/arm/tm-embed.h +++ b/gdb/config/arm/tm-embed.h @@ -50,15 +50,15 @@ /* Functions for dealing with Thumb call thunks. */ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) arm_in_call_stub (pc, name) #define SKIP_TRAMPOLINE_CODE(pc) arm_skip_stub (pc) -extern int arm_in_call_stub PARAMS ((CORE_ADDR pc, char *name)); -extern CORE_ADDR arm_skip_stub PARAMS ((CORE_ADDR pc)); +extern int arm_in_call_stub (CORE_ADDR pc, char *name); +extern CORE_ADDR arm_skip_stub (CORE_ADDR pc); /* Function to determine whether MEMADDR is in a Thumb function. */ -extern int arm_pc_is_thumb PARAMS ((bfd_vma memaddr)); +extern int arm_pc_is_thumb (bfd_vma memaddr); /* Function to determine whether MEMADDR is in a call dummy called from a Thumb function. */ -extern int arm_pc_is_thumb_dummy PARAMS ((bfd_vma memaddr)); +extern int arm_pc_is_thumb_dummy (bfd_vma memaddr); #undef IN_SIGTRAMP diff --git a/gdb/config/convex/tm-convex.h b/gdb/config/convex/tm-convex.h Binary files differindex f41b726..884719f 100644 --- a/gdb/config/convex/tm-convex.h +++ b/gdb/config/convex/tm-convex.h diff --git a/gdb/config/d30v/tm-d30v.h b/gdb/config/d30v/tm-d30v.h index ac7940f..e0cb876 100644 --- a/gdb/config/d30v/tm-d30v.h +++ b/gdb/config/d30v/tm-d30v.h @@ -46,7 +46,7 @@ struct value; /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR d30v_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR d30v_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(ip) (d30v_skip_prologue (ip)) @@ -165,7 +165,7 @@ extern CORE_ADDR d30v_skip_prologue PARAMS ((CORE_ADDR)); #define CANNOT_STORE_REGISTER(regno) ((regno) == R0_REGNUM) -void d30v_do_registers_info PARAMS ((int regnum, int fpregs)); +void d30v_do_registers_info (int regnum, int fpregs); #define DO_REGISTERS_INFO d30v_do_registers_info @@ -206,7 +206,7 @@ void d30v_do_registers_info PARAMS ((int regnum, int fpregs)); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ d30v_init_extra_frame_info(fromleaf, fi) -extern void d30v_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info * fi)); +extern void d30v_init_extra_frame_info (int fromleaf, struct frame_info *fi); /* A macro that tells us whether the function invocation represented by FI does not have a frame on the stack associated with it. If it @@ -217,7 +217,7 @@ extern void d30v_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info CORE_ADDR d30v_frame_chain (struct frame_info *frame); #define FRAME_CHAIN(FRAME) d30v_frame_chain(FRAME) -extern int d30v_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); +extern int d30v_frame_chain_valid (CORE_ADDR, struct frame_info *); #define FRAME_CHAIN_VALID(chain, thisframe) d30v_frame_chain_valid (chain, thisframe) #define FRAME_SAVED_PC(FRAME) ((FRAME)->return_pc) #define FRAME_ARGS_ADDRESS(fi) (fi)->frame @@ -253,7 +253,8 @@ void d30v_init_frame_pc (int fromleaf, struct frame_info *prev); #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ d30v_frame_find_saved_regs(frame_info, &(frame_saved_regs)) -extern void d30v_frame_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *)); +extern void d30v_frame_find_saved_regs (struct frame_info *, + struct frame_saved_regs *); /* DUMMY FRAMES. Need these to support inferior function calls. They work like this on D30V: @@ -271,7 +272,7 @@ extern void d30v_frame_find_saved_regs PARAMS ((struct frame_info *, struct fram #define CALL_DUMMY_LOCATION AT_ENTRY_POINT #define CALL_DUMMY_BREAKPOINT_OFFSET (0) -extern CORE_ADDR d30v_call_dummy_address PARAMS ((void)); +extern CORE_ADDR d30v_call_dummy_address (void); #define CALL_DUMMY_ADDRESS() d30v_call_dummy_address() #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ @@ -279,12 +280,13 @@ sp = d30v_fix_call_dummy (dummyname, pc, fun, nargs, args, type, gcc_p) #define PC_IN_CALL_DUMMY(pc, sp, frame_address) ( pc == IMEM_START + 4 ) -extern CORE_ADDR d30v_fix_call_dummy PARAMS ((char *, CORE_ADDR, CORE_ADDR, - int, struct value **, - struct type *, int)); +extern CORE_ADDR d30v_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, + int, struct value **, + struct type *, int); #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (d30v_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) -extern CORE_ADDR d30v_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); +extern CORE_ADDR d30v_push_arguments (int, struct value **, CORE_ADDR, int, + CORE_ADDR); /* Extract from an array REGBUF containing the (raw) register state @@ -293,14 +295,13 @@ extern CORE_ADDR d30v_push_arguments PARAMS ((int, struct value **, CORE_ADDR, i #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ d30v_extract_return_value(TYPE, REGBUF, VALBUF) -extern void -d30v_extract_return_value PARAMS ((struct type *, char *, char *)); +extern void d30v_extract_return_value (struct type *, char *, char *); /* Discard from the stack the innermost frame, restoring all saved registers. */ #define POP_FRAME d30v_pop_frame(); -extern void d30v_pop_frame PARAMS ((void)); +extern void d30v_pop_frame (void); #define REGISTER_SIZE 4 diff --git a/gdb/config/fr30/tm-fr30.h b/gdb/config/fr30/tm-fr30.h index 69c85aa..f9136ae 100644 --- a/gdb/config/fr30/tm-fr30.h +++ b/gdb/config/fr30/tm-fr30.h @@ -94,7 +94,7 @@ /* Largest value REGISTER_VIRTUAL_SIZE can have. */ #define MAX_REGISTER_VIRTUAL_SIZE FR30_REGSIZE -extern void fr30_pop_frame PARAMS ((void)); +extern void fr30_pop_frame (void); #define POP_FRAME fr30_pop_frame() #define USE_GENERIC_DUMMY_FRAMES 1 @@ -150,22 +150,22 @@ struct value; int frameoffset; \ int framereg; -extern CORE_ADDR fr30_frame_chain PARAMS ((struct frame_info * fi)); +extern CORE_ADDR fr30_frame_chain (struct frame_info *fi); #define FRAME_CHAIN(fi) fr30_frame_chain (fi) -extern CORE_ADDR fr30_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR fr30_frame_saved_pc (struct frame_info *); #define FRAME_SAVED_PC(fi) (fr30_frame_saved_pc (fi)) #define SAVED_PC_AFTER_CALL(fi) read_register (RP_REGNUM) -extern CORE_ADDR fr30_skip_prologue PARAMS ((CORE_ADDR pc)); +extern CORE_ADDR fr30_skip_prologue (CORE_ADDR pc); #define SKIP_PROLOGUE(pc) (fr30_skip_prologue (pc)) /* Write into appropriate registers a function return value of type TYPE, given in virtual format. VALBUF is in the target byte order; it's typically the VALUE_CONTENTS of some struct value, and those are in the target's byte order. */ -extern void fr30_store_return_value PARAMS ((struct type * type, char *valbuf)); +extern void fr30_store_return_value (struct type *type, char *valbuf); #define STORE_RETURN_VALUE(TYPE,VALBUF) \ (fr30_store_return_value ((TYPE), (VALBUF))) @@ -192,18 +192,17 @@ extern void fr30_store_return_value PARAMS ((struct type * type, char *valbuf)); /* An expression that tells us whether the function invocation represented by FI does not have a frame on the stack associated with it. */ -extern int fr30_frameless_function_invocation PARAMS ((struct frame_info * frame)); +extern int fr30_frameless_function_invocation (struct frame_info *frame); #define FRAMELESS_FUNCTION_INVOCATION(FI) (fr30_frameless_function_invocation (FI)); -extern void fr30_init_extra_frame_info PARAMS ((struct frame_info * fi)); +extern void fr30_init_extra_frame_info (struct frame_info *fi); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) fr30_init_extra_frame_info (fi) #define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI) extern CORE_ADDR - fr30_push_arguments PARAMS ((int nargs, struct value ** args, CORE_ADDR sp, - int struct_return, - CORE_ADDR struct_addr)); +fr30_push_arguments (int nargs, struct value **args, CORE_ADDR sp, + int struct_return, CORE_ADDR struct_addr); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (fr30_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)) diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h index 8ee6816..27a79d7 100644 --- a/gdb/config/h8300/tm-h8300.h +++ b/gdb/config/h8300/tm-h8300.h @@ -159,7 +159,7 @@ extern char **h8300_register_names; /* FIXME: Won't work with both h8/300's. */ -extern void h8300_extract_return_value PARAMS ((struct type *, char *, char *)); +extern void h8300_extract_return_value (struct type *, char *, char *); #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ h8300_extract_return_value (TYPE, (char *)(REGBUF), (char *)(VALBUF)) @@ -168,7 +168,7 @@ extern void h8300_extract_return_value PARAMS ((struct type *, char *, char *)); in d0/d1. */ /* FIXME: Won't work with both h8/300's. */ -extern void h8300_store_return_value PARAMS ((struct type *, char *)); +extern void h8300_store_return_value (struct type *, char *); #define STORE_RETURN_VALUE(TYPE,VALBUF) \ h8300_store_return_value(TYPE, (char *) (VALBUF)) @@ -196,7 +196,7 @@ extern void h8300_store_return_value PARAMS ((struct type *, char *)); it means the given frame is the outermost one and has no caller. */ #define FRAME_CHAIN(FRAME) h8300_frame_chain(FRAME) -CORE_ADDR h8300_frame_chain PARAMS ((struct frame_info *)); +CORE_ADDR h8300_frame_chain (struct frame_info *); /* In the case of the H8/300, the frame's nominal address is the address of a 2-byte word containing the calling frame's address. */ @@ -278,12 +278,12 @@ typedef unsigned short INSN_WORD; #define CALL_DUMMY_START_OFFSET (0) #define CALL_DUMMY_BREAKPOINT_OFFSET (0) -extern CORE_ADDR h8300_push_arguments PARAMS ((int nargs, - struct value ** args, - CORE_ADDR sp, - unsigned char struct_return, - CORE_ADDR struct_addr)); -extern CORE_ADDR h8300_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR h8300_push_arguments (int nargs, + struct value **args, + CORE_ADDR sp, + unsigned char struct_return, + CORE_ADDR struct_addr); +extern CORE_ADDR h8300_push_return_address (CORE_ADDR, CORE_ADDR); #define PC_IN_CALL_DUMMY(PC, SP, FP) generic_pc_in_call_dummy (PC, SP, FP) #define FIX_CALL_DUMMY(DUMMY, START_SP, FUNADDR, NARGS, ARGS, TYPE, GCCP) diff --git a/gdb/config/h8500/tm-h8500.h b/gdb/config/h8500/tm-h8500.h index 070ac27..00eb218 100644 --- a/gdb/config/h8500/tm-h8500.h +++ b/gdb/config/h8500/tm-h8500.h @@ -45,7 +45,7 @@ to reach some "real" code. */ #define SKIP_PROLOGUE(ip) (h8500_skip_prologue (ip)) -extern CORE_ADDR h8500_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR h8500_skip_prologue (CORE_ADDR); /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines @@ -53,7 +53,7 @@ extern CORE_ADDR h8500_skip_prologue PARAMS ((CORE_ADDR)); some instructions. */ #define SAVED_PC_AFTER_CALL(frame) saved_pc_after_call() -extern CORE_ADDR saved_pc_after_call PARAMS ((void)); +extern CORE_ADDR saved_pc_after_call (void); /* Stack grows downward. */ @@ -86,7 +86,7 @@ extern CORE_ADDR saved_pc_after_call PARAMS ((void)); for register N. */ #define REGISTER_RAW_SIZE(N) h8500_register_size(N) -extern int h8500_register_size PARAMS ((int regno)); +extern int h8500_register_size (int regno); #define REGISTER_SIZE 4 @@ -104,7 +104,7 @@ extern int h8500_register_size PARAMS ((int regno)); of data in register N. */ #define REGISTER_VIRTUAL_TYPE(N) h8500_register_virtual_type(N) -extern struct type *h8500_register_virtual_type PARAMS ((int regno)); +extern struct type *h8500_register_virtual_type (int regno); /* Initializer for an array of names of registers. Entries beyond the first NUM_REGS are ignored. */ @@ -207,10 +207,10 @@ extern struct type *h8500_register_virtual_type PARAMS ((int regno)); #define FRAME_CHAIN(FRAME) h8500_frame_chain(FRAME) struct frame_info; -extern CORE_ADDR h8500_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR h8500_frame_chain (struct frame_info *); #define FRAME_SAVED_PC(FRAME) frame_saved_pc(FRAME) -extern CORE_ADDR frame_saved_pc PARAMS ((struct frame_info * frame)); +extern CORE_ADDR frame_saved_pc (struct frame_info *frame); #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame) @@ -237,26 +237,27 @@ extern CORE_ADDR frame_saved_pc PARAMS ((struct frame_info * frame)); #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ frame_find_saved_regs(frame_info, &(frame_saved_regs)) struct frame_saved_regs; -extern void frame_find_saved_regs PARAMS ((struct frame_info * frame_info, struct frame_saved_regs * frame_saved_regs)); +extern void frame_find_saved_regs (struct frame_info *frame_info, + struct frame_saved_regs *frame_saved_regs); /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME { h8500_pop_frame (); } -extern void h8500_pop_frame PARAMS ((void)); +extern void h8500_pop_frame (void); #define SHORT_INT_MAX 32767 #define SHORT_INT_MIN -32768 typedef unsigned short INSN_WORD; -extern CORE_ADDR h8500_addr_bits_remove PARAMS ((CORE_ADDR)); +extern CORE_ADDR h8500_addr_bits_remove (CORE_ADDR); #define ADDR_BITS_REMOVE(addr) h8500_addr_bits_remove (addr) #define read_memory_short(x) (read_memory_integer(x,2) & 0xffff) #define PRINT_REGISTER_HOOK(regno) print_register_hook(regno) -extern void print_register_hook PARAMS ((int)); +extern void print_register_hook (int); extern int minimum_mode; @@ -265,7 +266,7 @@ extern int minimum_mode; /* Fake variables to make it easy to use 24 bit register pointers */ #define IS_TRAPPED_INTERNALVAR h8500_is_trapped_internalvar -extern int h8500_is_trapped_internalvar PARAMS ((char *name)); +extern int h8500_is_trapped_internalvar (char *name); #define VALUE_OF_TRAPPED_INTERNALVAR h8500_value_of_trapped_internalvar extern struct value *h8500_value_of_trapped_internalvar ( /* struct internalvar *var */ ); @@ -273,14 +274,14 @@ extern struct value *h8500_value_of_trapped_internalvar ( /* struct internalvar #define SET_TRAPPED_INTERNALVAR h8500_set_trapped_internalvar extern void h8500_set_trapped_internalvar ( /* struct internalvar *var, value newval, int bitpos, int bitsize, int offset */ ); -extern CORE_ADDR h8500_read_sp PARAMS ((void)); -extern void h8500_write_sp PARAMS ((CORE_ADDR)); +extern CORE_ADDR h8500_read_sp (void); +extern void h8500_write_sp (CORE_ADDR); -extern CORE_ADDR h8500_read_fp PARAMS ((void)); -extern void h8500_write_fp PARAMS ((CORE_ADDR)); +extern CORE_ADDR h8500_read_fp (void); +extern void h8500_write_fp (CORE_ADDR); -extern CORE_ADDR h8500_read_pc PARAMS ((int)); -extern void h8500_write_pc PARAMS ((CORE_ADDR, int)); +extern CORE_ADDR h8500_read_pc (int); +extern void h8500_write_pc (CORE_ADDR, int); #define TARGET_READ_SP() h8500_read_sp() #define TARGET_WRITE_SP(x) h8500_write_sp(x) diff --git a/gdb/config/i386/nm-i386bsd.h b/gdb/config/i386/nm-i386bsd.h index 41a414c..caa831f 100644 --- a/gdb/config/i386/nm-i386bsd.h +++ b/gdb/config/i386/nm-i386bsd.h @@ -32,8 +32,7 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = i386_register_u_addr ((blockend),(regno)); -extern int -i386_register_u_addr PARAMS ((int, int)); +extern int i386_register_u_addr (int, int); #define PTRACE_ARG3_TYPE char* diff --git a/gdb/config/i386/nm-i386sco.h b/gdb/config/i386/nm-i386sco.h index 5b56ad6..0bfdf4d 100644 --- a/gdb/config/i386/nm-i386sco.h +++ b/gdb/config/i386/nm-i386sco.h @@ -33,8 +33,7 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = i386_register_u_addr ((blockend),(regno)); -extern int -i386_register_u_addr PARAMS ((int, int)); +extern int i386_register_u_addr (int, int); /* When calling functions on SCO, sometimes we get an error writing some of the segment registers. This would appear to be a kernel diff --git a/gdb/config/i386/nm-i386sol2.h b/gdb/config/i386/nm-i386sol2.h index 8f29711..7c947cf 100644 --- a/gdb/config/i386/nm-i386sol2.h +++ b/gdb/config/i386/nm-i386sol2.h @@ -44,14 +44,14 @@ step anyway. */ #define CANNOT_STEP_HW_WATCHPOINTS -extern int procfs_stopped_by_watchpoint PARAMS ((int)); +extern int procfs_stopped_by_watchpoint (int); #define STOPPED_BY_WATCHPOINT(W) \ procfs_stopped_by_watchpoint(inferior_pid) /* Use these macros for watchpoint insertion/deletion. */ /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ -extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int)); +extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int); #define target_insert_watchpoint(ADDR, LEN, TYPE) \ procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 1) #define target_remove_watchpoint(ADDR, LEN, TYPE) \ diff --git a/gdb/config/i386/nm-i386v.h b/gdb/config/i386/nm-i386v.h index 76b526b..963c692 100644 --- a/gdb/config/i386/nm-i386v.h +++ b/gdb/config/i386/nm-i386v.h @@ -33,5 +33,4 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = i386_register_u_addr ((blockend),(regno)); -extern int -i386_register_u_addr PARAMS ((int, int)); +extern int i386_register_u_addr (int, int); diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h index 4fb6965..f95c6fe 100644 --- a/gdb/config/i386/nm-linux.h +++ b/gdb/config/i386/nm-linux.h @@ -28,7 +28,7 @@ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); #define U_REGS_OFFSET 0 @@ -75,11 +75,8 @@ extern int kernel_u_size PARAMS ((void)); /* Override child_resume in `infptrace.c'. */ #define CHILD_RESUME -extern CORE_ADDR - i386_stopped_by_watchpoint PARAMS ((int)); -extern int -i386_insert_watchpoint PARAMS ((int pid, CORE_ADDR addr, int len, int rw)); -extern int -i386_remove_watchpoint PARAMS ((int pid, CORE_ADDR addr, int len)); +extern CORE_ADDR i386_stopped_by_watchpoint (int); +extern int i386_insert_watchpoint (int pid, CORE_ADDR addr, int len, int rw); +extern int i386_remove_watchpoint (int pid, CORE_ADDR addr, int len); #endif /* #ifndef NM_LINUX_H */ diff --git a/gdb/config/i386/nm-nbsd.h b/gdb/config/i386/nm-nbsd.h index 22a3434..74edd2f 100644 --- a/gdb/config/i386/nm-nbsd.h +++ b/gdb/config/i386/nm-nbsd.h @@ -27,7 +27,6 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = i386_register_u_addr ((blockend),(regno)); -extern int -i386_register_u_addr PARAMS ((int, int)); +extern int i386_register_u_addr (int, int); #endif /* NM_NBSD_H */ diff --git a/gdb/config/i386/nm-ptx4.h b/gdb/config/i386/nm-ptx4.h index 289ffe0..9942866 100644 --- a/gdb/config/i386/nm-ptx4.h +++ b/gdb/config/i386/nm-ptx4.h @@ -39,7 +39,7 @@ #define CHILD_WAIT struct target_waitstatus; -extern int child_wait PARAMS ((int, struct target_waitstatus *)); +extern int child_wait (int, struct target_waitstatus *); /* * ptx does attach as of ptx version 2.1. Prior to that, the interface diff --git a/gdb/config/i386/nm-symmetry.h b/gdb/config/i386/nm-symmetry.h index 781adf2..a672d94 100644 --- a/gdb/config/i386/nm-symmetry.h +++ b/gdb/config/i386/nm-symmetry.h @@ -29,7 +29,7 @@ #ifdef _SEQUENT_ #define CHILD_WAIT -extern int child_wait PARAMS ((int, struct target_waitstatus *)); +extern int child_wait (int, struct target_waitstatus *); #endif /* This is the amount to subtract from u.u_ar0 diff --git a/gdb/config/i386/tm-cygwin.h b/gdb/config/i386/tm-cygwin.h index d726328..597ea51 100644 --- a/gdb/config/i386/tm-cygwin.h +++ b/gdb/config/i386/tm-cygwin.h @@ -26,6 +26,6 @@ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) skip_trampoline_code (pc, name) #define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, 0) -extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR pc, char *name)); +extern CORE_ADDR skip_trampoline_code (CORE_ADDR pc, char *name); -extern char *cygwin_pid_to_str PARAMS ((int pid)); +extern char *cygwin_pid_to_str (int pid); diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h index 33cb7f6..918d62a 100644 --- a/gdb/config/i386/tm-i386.h +++ b/gdb/config/i386/tm-i386.h @@ -62,7 +62,7 @@ struct type; #define SKIP_PROLOGUE(frompc) (i386_skip_prologue (frompc)) -extern int i386_skip_prologue PARAMS ((int)); +extern int i386_skip_prologue (int); /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines the new frame is not @@ -344,7 +344,7 @@ extern void i386_extract_return_value (struct type *type, char *regbuf, : read_memory_integer ((FRAME)->frame + 4, 4)) \ ) -extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR sigtramp_saved_pc (struct frame_info *); #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame) @@ -355,7 +355,7 @@ extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *)); #define FRAME_NUM_ARGS(fi) (i386_frame_num_args(fi)) -extern int i386_frame_num_args PARAMS ((struct frame_info *)); +extern int i386_frame_num_args (struct frame_info *); /* Return number of bytes at start of arglist that are not really args. */ @@ -367,7 +367,7 @@ extern int i386_frame_num_args PARAMS ((struct frame_info *)); ways in the stack frame. sp is even more special: the address we return for it IS the sp for the next frame. */ -extern void i386_frame_init_saved_regs PARAMS ((struct frame_info *)); +extern void i386_frame_init_saved_regs (struct frame_info *); #define FRAME_INIT_SAVED_REGS(FI) i386_frame_init_saved_regs (FI) @@ -383,13 +383,13 @@ extern void i386_frame_init_saved_regs PARAMS ((struct frame_info *)); #define PUSH_DUMMY_FRAME { i386_push_dummy_frame (); } -extern void i386_push_dummy_frame PARAMS ((void)); +extern void i386_push_dummy_frame (void); /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME { i386_pop_frame (); } -extern void i386_pop_frame PARAMS ((void)); +extern void i386_pop_frame (void); /* this is @@ -421,8 +421,8 @@ extern void i386_pop_frame PARAMS ((void)); *((char *)(dummyname) + 4) = ((delta >> 24) & 0xff); \ } -extern void print_387_control_word PARAMS ((unsigned int)); -extern void print_387_status_word PARAMS ((unsigned int)); +extern void print_387_control_word (unsigned int); +extern void print_387_status_word (unsigned int); /* Offset from SP to first arg on stack at first instruction of a function */ diff --git a/gdb/config/i386/tm-i386nw.h b/gdb/config/i386/tm-i386nw.h index d61934a..75dbc55 100644 --- a/gdb/config/i386/tm-i386nw.h +++ b/gdb/config/i386/tm-i386nw.h @@ -41,8 +41,7 @@ we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/i386/tm-i386sol2.h b/gdb/config/i386/tm-i386sol2.h index 091f9a7..28521fc 100644 --- a/gdb/config/i386/tm-i386sol2.h +++ b/gdb/config/i386/tm-i386sol2.h @@ -45,7 +45,7 @@ and for SunPRO 3.0, N_FUN symbols too. */ #define SOFUN_ADDRESS_MAYBE_MISSING -extern char *sunpro_static_transform_name PARAMS ((char *)); +extern char *sunpro_static_transform_name (char *); #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x) #define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.') diff --git a/gdb/config/i386/tm-i386v.h b/gdb/config/i386/tm-i386v.h index 5e7826d..9635e99 100644 --- a/gdb/config/i386/tm-i386v.h +++ b/gdb/config/i386/tm-i386v.h @@ -90,7 +90,6 @@ struct frame_info; struct frame_saved_regs; -extern int -i386_frame_num_args PARAMS ((struct frame_info *)); +extern int i386_frame_num_args (struct frame_info *); #endif /* ifndef TM_I386V_H */ diff --git a/gdb/config/i386/tm-i386v4.h b/gdb/config/i386/tm-i386v4.h index cdda76d..04d90d4 100644 --- a/gdb/config/i386/tm-i386v4.h +++ b/gdb/config/i386/tm-i386v4.h @@ -55,8 +55,7 @@ we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) @@ -74,6 +73,6 @@ get_longjmp_target PARAMS ((CORE_ADDR *)); /* Saved Pc. Get it from ucontext if within sigtramp. */ #define sigtramp_saved_pc i386v4_sigtramp_saved_pc -extern CORE_ADDR i386v4_sigtramp_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR i386v4_sigtramp_saved_pc (struct frame_info *); #endif /* ifndef TM_I386V4_H */ diff --git a/gdb/config/i386/tm-nbsd.h b/gdb/config/i386/tm-nbsd.h index 66002ed..885c809 100644 --- a/gdb/config/i386/tm-nbsd.h +++ b/gdb/config/i386/tm-nbsd.h @@ -39,8 +39,7 @@ extern use_struct_convention_fn i386nbsd_use_struct_convention; we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/i386/tm-ptx.h b/gdb/config/i386/tm-ptx.h index 14491a4..99abd0b 100644 --- a/gdb/config/i386/tm-ptx.h +++ b/gdb/config/i386/tm-ptx.h @@ -139,8 +139,7 @@ since it uses host specific ptrace calls. #define REGISTER_U_ADDR(addr, blockend, regno) \ { (addr) = ptx_register_u_addr((blockend), (regno)); } -extern int -ptx_register_u_addr PARAMS ((int, int)); +extern int ptx_register_u_addr (int, int); /* Total amount of space needed to store our copies of the machine's register state, the array `registers'. 10 i*86 registers, 8 i387 diff --git a/gdb/config/i386/tm-sun386.h b/gdb/config/i386/tm-sun386.h index a4ef54c..d8f41f5 100644 --- a/gdb/config/i386/tm-sun386.h +++ b/gdb/config/i386/tm-sun386.h @@ -130,8 +130,7 @@ i387_to_double ((FROM), (char *)&val); \ store_floating ((TO), TYPE_LENGTH (TYPE), val); \ } -extern void -i387_to_double PARAMS ((char *, char *)); +extern void i387_to_double (char *, char *); /* Convert data from virtual format with type TYPE in buffer FROM to raw format for register REGNUM in buffer TO. */ @@ -142,8 +141,7 @@ i387_to_double PARAMS ((char *, char *)); double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ double_to_i387((char *)&val, (TO)); \ } -extern void -double_to_i387 PARAMS ((char *, char *)); +extern void double_to_i387 (char *, char *); /* Return the GDB type object for the "standard" data type of data in register N. */ diff --git a/gdb/config/i960/tm-mon960.h b/gdb/config/i960/tm-mon960.h index 61b937e..adb6e3d 100644 --- a/gdb/config/i960/tm-mon960.h +++ b/gdb/config/i960/tm-mon960.h @@ -55,7 +55,7 @@ struct frame_info; since it differs between Nindy, Mon960 and VxWorks, the currently supported target types. */ -extern int mon960_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); +extern int mon960_frame_chain_valid (CORE_ADDR, struct frame_info *); #define FRAME_CHAIN_VALID(chain, thisframe) mon960_frame_chain_valid (chain, thisframe) /* Sequence of bytes for breakpoint instruction */ diff --git a/gdb/config/i960/tm-nindy960.h b/gdb/config/i960/tm-nindy960.h index d57a697..8fc2683 100644 --- a/gdb/config/i960/tm-nindy960.h +++ b/gdb/config/i960/tm-nindy960.h @@ -89,7 +89,7 @@ extern void since it differs between NINDY and VxWorks, the two currently supported targets types. */ -extern int nindy_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); +extern int nindy_frame_chain_valid (CORE_ADDR, struct frame_info *); #define FRAME_CHAIN_VALID(chain, thisframe) nindy_frame_chain_valid (chain, thisframe) extern int diff --git a/gdb/config/m32r/tm-m32r.h b/gdb/config/m32r/tm-m32r.h index a68720a..208522f 100644 --- a/gdb/config/m32r/tm-m32r.h +++ b/gdb/config/m32r/tm-m32r.h @@ -107,15 +107,15 @@ struct value; int using_frame_pointer; -extern void m32r_init_extra_frame_info PARAMS ((struct frame_info * fi)); +extern void m32r_init_extra_frame_info (struct frame_info *fi); /* mvs_check INIT_EXTRA_FRAME_INFO */ #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) m32r_init_extra_frame_info (fi) /* mvs_no_check INIT_FRAME_PC */ #define INIT_FRAME_PC /* Not necessary */ extern void -m32r_frame_find_saved_regs PARAMS ((struct frame_info * fi, - struct frame_saved_regs * regaddr)); +m32r_frame_find_saved_regs (struct frame_info *fi, + struct frame_saved_regs *regaddr); /* Put here the code to store, into a struct frame_saved_regs, the addresses of the saved registers of frame described by FRAME_INFO. @@ -127,15 +127,14 @@ m32r_frame_find_saved_regs PARAMS ((struct frame_info * fi, #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ m32r_frame_find_saved_regs(frame_info, &(frame_saved_regs)) -extern CORE_ADDR m32r_frame_chain PARAMS ((struct frame_info * fi)); +extern CORE_ADDR m32r_frame_chain (struct frame_info *fi); /* mvs_check FRAME_CHAIN */ #define FRAME_CHAIN(fi) m32r_frame_chain (fi) #define FRAME_CHAIN_VALID(fp, frame) generic_file_frame_chain_valid (fp, frame) -extern CORE_ADDR m32r_find_callers_reg PARAMS ((struct frame_info * fi, - int regnum)); -extern CORE_ADDR m32r_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR m32r_find_callers_reg (struct frame_info *fi, int regnum); +extern CORE_ADDR m32r_frame_saved_pc (struct frame_info *); /* mvs_check FRAME_SAVED_PC */ #define FRAME_SAVED_PC(fi) m32r_frame_saved_pc (fi) @@ -152,7 +151,7 @@ extern CORE_ADDR m32r_frame_saved_pc PARAMS ((struct frame_info *)); ((TYPE_LENGTH (TYPE) > 4 ? 8:4) - TYPE_LENGTH (TYPE)),\ (VALBUF), TYPE_LENGTH (TYPE)); -extern CORE_ADDR m32r_skip_prologue PARAMS ((CORE_ADDR pc)); +extern CORE_ADDR m32r_skip_prologue (CORE_ADDR pc); /* mvs_check SKIP_PROLOGUE */ #define SKIP_PROLOGUE(pc) (m32r_skip_prologue (pc)) @@ -198,19 +197,19 @@ extern use_struct_convention_fn m32r_use_struct_convention; /* target-specific dummy_frame stuff */ -extern struct frame_info *m32r_pop_frame PARAMS ((struct frame_info * frame)); +extern struct frame_info *m32r_pop_frame (struct frame_info *frame); /* mvs_check POP_FRAME */ #define POP_FRAME m32r_pop_frame (get_current_frame ()) /* mvs_no_check STACK_ALIGN */ /* #define STACK_ALIGN(x) ((x + 3) & ~3) */ -extern CORE_ADDR m32r_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); -extern CORE_ADDR m32r_push_arguments PARAMS ((int nargs, - struct value ** args, - CORE_ADDR sp, - unsigned char struct_return, - CORE_ADDR struct_addr)); +extern CORE_ADDR m32r_push_return_address (CORE_ADDR, CORE_ADDR); +extern CORE_ADDR m32r_push_arguments (int nargs, + struct value **args, + CORE_ADDR sp, + unsigned char struct_return, + CORE_ADDR struct_addr); diff --git a/gdb/config/m68k/nm-dpx2.h b/gdb/config/m68k/nm-dpx2.h index b24e7c2..3638947 100644 --- a/gdb/config/m68k/nm-dpx2.h +++ b/gdb/config/m68k/nm-dpx2.h @@ -23,8 +23,7 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = dpx2_register_u_addr ((blockend),(regno)); -extern int -dpx2_register_u_addr PARAMS ((int, int)); +extern int dpx2_register_u_addr (int, int); /* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ #define ONE_PROCESS_WRITETEXT diff --git a/gdb/config/m68k/nm-linux.h b/gdb/config/m68k/nm-linux.h index e5846c6..3f0d2dd 100644 --- a/gdb/config/m68k/nm-linux.h +++ b/gdb/config/m68k/nm-linux.h @@ -26,14 +26,13 @@ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); #define U_REGS_OFFSET 0 #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = m68k_linux_register_u_addr ((blockend),(regno)); -extern int -m68k_linux_register_u_addr PARAMS ((int, int)); +extern int m68k_linux_register_u_addr (int, int); #endif /* #ifndef NM_LINUX_H */ diff --git a/gdb/config/m68k/tm-altos.h b/gdb/config/m68k/tm-altos.h Binary files differindex 4483aa0..26a0302 100644 --- a/gdb/config/m68k/tm-altos.h +++ b/gdb/config/m68k/tm-altos.h diff --git a/gdb/config/m68k/tm-cisco.h b/gdb/config/m68k/tm-cisco.h index ae8de66..e27432d 100644 --- a/gdb/config/m68k/tm-cisco.h +++ b/gdb/config/m68k/tm-cisco.h @@ -48,7 +48,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* BFD handles finding the registers in the core file, so they are at the start of the BFD .reg section. */ diff --git a/gdb/config/m68k/tm-delta68.h b/gdb/config/m68k/tm-delta68.h index 745bd00..b4de935 100644 --- a/gdb/config/m68k/tm-delta68.h +++ b/gdb/config/m68k/tm-delta68.h @@ -76,7 +76,7 @@ /* Return number of args passed to a frame. Can return -1, meaning no way to tell. */ -extern int delta68_frame_num_args PARAMS ((struct frame_info * fi)); +extern int delta68_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (delta68_frame_num_args ((fi))) /* On M68040 versions of sysV68 R3V7.1, ptrace(PT_WRITE_I) does not clear @@ -93,13 +93,13 @@ extern int delta68_frame_num_args PARAMS ((struct frame_info * fi)); #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF)\ (*(CORE_ADDR *)((char*)(REGBUF) + 8 * 4)) -extern int delta68_in_sigtramp PARAMS ((CORE_ADDR pc, char * name)); +extern int delta68_in_sigtramp (CORE_ADDR pc, char *name); #define IN_SIGTRAMP(pc,name) delta68_in_sigtramp (pc, name) -extern CORE_ADDR delta68_frame_saved_pc PARAMS ((struct frame_info * fi)); +extern CORE_ADDR delta68_frame_saved_pc (struct frame_info *fi); #undef FRAME_SAVED_PC #define FRAME_SAVED_PC(fi) delta68_frame_saved_pc (fi) -extern CORE_ADDR delta68_frame_args_address PARAMS ((struct frame_info * fi)); +extern CORE_ADDR delta68_frame_args_address (struct frame_info *fi); #undef FRAME_ARGS_ADDRESS #define FRAME_ARGS_ADDRESS(fi) delta68_frame_args_address (fi) diff --git a/gdb/config/m68k/tm-es1800.h b/gdb/config/m68k/tm-es1800.h index ad1f235..b6f1588 100644 --- a/gdb/config/m68k/tm-es1800.h +++ b/gdb/config/m68k/tm-es1800.h @@ -57,4 +57,4 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); diff --git a/gdb/config/m68k/tm-isi.h b/gdb/config/m68k/tm-isi.h index 1442d17..f11b823 100644 --- a/gdb/config/m68k/tm-isi.h +++ b/gdb/config/m68k/tm-isi.h @@ -42,7 +42,7 @@ /* Return number of args passed to a frame. Can return -1, meaning no way to tell. */ -extern int isi_frame_num_args PARAMS ((struct frame_info * fi)); +extern int isi_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (isi_frame_num_args ((fi))) /* Put here the code to store, into a struct frame_saved_regs, @@ -122,7 +122,7 @@ retry: \ /* The only reason this is here is the tm-isi.h reference below. It was moved back here from tm-m68k.h. FIXME? */ -extern CORE_ADDR isi_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR isi_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (isi_skip_prologue (pc)) #include "m68k/tm-m68k.h" diff --git a/gdb/config/m68k/tm-linux.h b/gdb/config/m68k/tm-linux.h index ccf4a7a..1d47d46 100644 --- a/gdb/config/m68k/tm-linux.h +++ b/gdb/config/m68k/tm-linux.h @@ -104,7 +104,7 @@ ? sigtramp_saved_pc (FRAME) \ : read_memory_integer ((FRAME)->frame + 4, 4))) -extern CORE_ADDR sigtramp_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR sigtramp_saved_pc (struct frame_info *); #define IN_SIGTRAMP(pc,name) in_sigtramp (pc) -extern int in_sigtramp PARAMS ((CORE_ADDR pc)); +extern int in_sigtramp (CORE_ADDR pc); diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h index 03cf9b3..38068c6 100644 --- a/gdb/config/m68k/tm-m68k.h +++ b/gdb/config/m68k/tm-m68k.h @@ -36,7 +36,7 @@ #if !defined(SKIP_PROLOGUE) #define SKIP_PROLOGUE(ip) (m68k_skip_prologue (ip)) #endif -extern CORE_ADDR m68k_skip_prologue PARAMS ((CORE_ADDR ip)); +extern CORE_ADDR m68k_skip_prologue (CORE_ADDR ip); /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines @@ -46,8 +46,9 @@ extern CORE_ADDR m68k_skip_prologue PARAMS ((CORE_ADDR ip)); struct frame_info; struct frame_saved_regs; -extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *)); -extern void m68k_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *)); +extern CORE_ADDR m68k_saved_pc_after_call (struct frame_info *); +extern void m68k_find_saved_regs (struct frame_info *, + struct frame_saved_regs *); #define SAVED_PC_AFTER_CALL(frame) \ m68k_saved_pc_after_call(frame) @@ -372,9 +373,9 @@ do \ #define PUSH_DUMMY_FRAME { m68k_push_dummy_frame (); } -extern void m68k_push_dummy_frame PARAMS ((void)); +extern void m68k_push_dummy_frame (void); -extern void m68k_pop_frame PARAMS ((void)); +extern void m68k_pop_frame (void); /* Discard from the stack the innermost frame, restoring all registers. */ diff --git a/gdb/config/m68k/tm-m68kv4.h b/gdb/config/m68k/tm-m68kv4.h index 84ebb0e..8f6f15e 100644 --- a/gdb/config/m68k/tm-m68kv4.h +++ b/gdb/config/m68k/tm-m68kv4.h @@ -65,7 +65,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* Convert a DWARF register number to a gdb REGNUM. */ #define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16) diff --git a/gdb/config/m68k/tm-news.h b/gdb/config/m68k/tm-news.h index ff9230b..9d1661f 100644 --- a/gdb/config/m68k/tm-news.h +++ b/gdb/config/m68k/tm-news.h @@ -60,7 +60,7 @@ /* Return number of args passed to a frame. Can return -1, meaning no way to tell. */ -extern int news_frame_num_args PARAMS ((struct frame_info * fi)); +extern int news_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (news_frame_num_args ((fi))) #include "m68k/tm-m68k.h" diff --git a/gdb/config/m68k/tm-sun3.h b/gdb/config/m68k/tm-sun3.h index ce88045..0c8651a 100644 --- a/gdb/config/m68k/tm-sun3.h +++ b/gdb/config/m68k/tm-sun3.h @@ -75,7 +75,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* If sun3 pcc says that a parameter is a short, it's a short. */ #define BELIEVE_PCC_PROMOTION_TYPE diff --git a/gdb/config/m68k/tm-vx68.h b/gdb/config/m68k/tm-vx68.h index 743220e..9ce812d 100644 --- a/gdb/config/m68k/tm-vx68.h +++ b/gdb/config/m68k/tm-vx68.h @@ -77,7 +77,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* Number of registers in a ptrace_getregs call. */ diff --git a/gdb/config/m68k/xm-hp300bsd.h b/gdb/config/m68k/xm-hp300bsd.h index 0da48bc..3911801 100644 --- a/gdb/config/m68k/xm-hp300bsd.h +++ b/gdb/config/m68k/xm-hp300bsd.h @@ -31,7 +31,7 @@ /* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ #define ONE_PROCESS_WRITETEXT -extern char *strdup PARAMS ((const char *)); +extern char *strdup (const char *); /* Interface definitions for kernel debugger KDB. */ diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h index 6effedc..f6a4324 100644 --- a/gdb/config/m88k/tm-m88k.h +++ b/gdb/config/m88k/tm-m88k.h @@ -53,7 +53,7 @@ extern void init_extra_frame_info (); /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR m88k_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR m88k_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(frompc) (m88k_skip_prologue (frompc)) /* The m88k kernel aligns all instructions on 4-byte boundaries. The @@ -63,7 +63,7 @@ extern CORE_ADDR m88k_skip_prologue PARAMS ((CORE_ADDR)); to realize that those two bits are not really a part of the address of an instruction. Shrug. */ -extern CORE_ADDR m88k_addr_bits_remove PARAMS ((CORE_ADDR)); +extern CORE_ADDR m88k_addr_bits_remove (CORE_ADDR); #define ADDR_BITS_REMOVE(addr) m88k_addr_bits_remove (addr) /* Immediately after a function call, return the saved pc. @@ -508,8 +508,8 @@ extern CORE_ADDR frame_locals_address (); struct frame_saved_regs; struct frame_info; -void frame_find_saved_regs PARAMS ((struct frame_info * fi, - struct frame_saved_regs * fsr)); +void frame_find_saved_regs (struct frame_info *fi, + struct frame_saved_regs *fsr); #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ frame_find_saved_regs (frame_info, &frame_saved_regs) diff --git a/gdb/config/mcore/tm-mcore.h b/gdb/config/mcore/tm-mcore.h index cea17a0..10aebec 100644 --- a/gdb/config/mcore/tm-mcore.h +++ b/gdb/config/mcore/tm-mcore.h @@ -124,13 +124,13 @@ extern void mcore_pop_frame (struct frame_info *fi); #define SIZEOF_CALL_DUMMY_WORDS 0 #define SAVE_DUMMY_FRAME_TOS(SP) generic_save_dummy_frame_tos (SP) -extern CORE_ADDR mcore_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR mcore_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) mcore_push_return_address (PC, SP) #define PUSH_DUMMY_FRAME generic_push_dummy_frame () -extern CORE_ADDR mcore_push_arguments PARAMS ((int, struct value **, CORE_ADDR, - unsigned char, CORE_ADDR)); +extern CORE_ADDR mcore_push_arguments (int, struct value **, CORE_ADDR, + unsigned char, CORE_ADDR); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (SP) = mcore_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) @@ -149,7 +149,7 @@ extern use_struct_convention_fn mcore_use_struct_convention; generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) /* Cons up virtual frame pointer for trace */ -extern void mcore_virtual_frame_pointer PARAMS ((CORE_ADDR, long *, long *)); +extern void mcore_virtual_frame_pointer (CORE_ADDR, long *, long *); #define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \ mcore_virtual_frame_pointer ((PC), (REGP), (OFFP)) diff --git a/gdb/config/mips/nm-irix3.h b/gdb/config/mips/nm-irix3.h index ab195fb..fc38176 100644 --- a/gdb/config/mips/nm-irix3.h +++ b/gdb/config/mips/nm-irix3.h @@ -30,7 +30,7 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); /* Is this really true or is this just a leftover from a DECstation config file? */ diff --git a/gdb/config/mips/nm-irix4.h b/gdb/config/mips/nm-irix4.h index af5a417..32c1209 100644 --- a/gdb/config/mips/nm-irix4.h +++ b/gdb/config/mips/nm-irix4.h @@ -51,7 +51,7 @@ #define STOPPED_BY_WATCHPOINT(W) \ procfs_stopped_by_watchpoint(inferior_pid) -extern int procfs_stopped_by_watchpoint PARAMS ((int)); +extern int procfs_stopped_by_watchpoint (int); #define HAVE_NONSTEPPABLE_WATCHPOINT @@ -61,6 +61,6 @@ extern int procfs_stopped_by_watchpoint PARAMS ((int)); procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 0) #define target_remove_watchpoint(ADDR, LEN, TYPE) \ procfs_set_watchpoint (inferior_pid, ADDR, 0, 0, 0) -extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int)); +extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int); #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1 diff --git a/gdb/config/mips/nm-irix5.h b/gdb/config/mips/nm-irix5.h index 4cf53b6..1244538 100644 --- a/gdb/config/mips/nm-irix5.h +++ b/gdb/config/mips/nm-irix5.h @@ -32,7 +32,7 @@ #define STOPPED_BY_WATCHPOINT(W) \ procfs_stopped_by_watchpoint(inferior_pid) -extern int procfs_stopped_by_watchpoint PARAMS ((int)); +extern int procfs_stopped_by_watchpoint (int); #define HAVE_NONSTEPPABLE_WATCHPOINT @@ -42,6 +42,6 @@ extern int procfs_stopped_by_watchpoint PARAMS ((int)); procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 0) #define target_remove_watchpoint(ADDR, LEN, TYPE) \ procfs_set_watchpoint (inferior_pid, ADDR, 0, 0, 0) -extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int)); +extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int); #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1 diff --git a/gdb/config/mips/nm-mips.h b/gdb/config/mips/nm-mips.h index 5b4cfa8..c7e434c 100644 --- a/gdb/config/mips/nm-mips.h +++ b/gdb/config/mips/nm-mips.h @@ -30,4 +30,4 @@ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern int get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); diff --git a/gdb/config/mips/tm-embed.h b/gdb/config/mips/tm-embed.h index 9e0ac86..faaffee 100644 --- a/gdb/config/mips/tm-embed.h +++ b/gdb/config/mips/tm-embed.h @@ -33,11 +33,11 @@ #define target_insert_watchpoint(addr, len, type) \ remote_mips_set_watchpoint (addr, len, type) -int remote_mips_set_watchpoint PARAMS ((CORE_ADDR addr, int len, int type)); +int remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type); #define target_remove_watchpoint(addr, len, type) \ remote_mips_remove_watchpoint (addr, len, type) -int remote_mips_remove_watchpoint PARAMS ((CORE_ADDR addr, int len, int type)); +int remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type); /* We need to remove watchpoints when stepping, else we hit them again! */ @@ -48,4 +48,4 @@ int remote_mips_stopped_by_watchpoint (void); #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ remote_mips_can_use_hardware_watchpoint(cnt) -int remote_mips_can_use_hardware_watchpoint PARAMS ((int cnt)); +int remote_mips_can_use_hardware_watchpoint (int cnt); 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 diff --git a/gdb/config/mn10200/tm-mn10200.h b/gdb/config/mn10200/tm-mn10200.h index f884361..5c26a00 100644 --- a/gdb/config/mn10200/tm-mn10200.h +++ b/gdb/config/mn10200/tm-mn10200.h @@ -99,20 +99,20 @@ struct value; #define EXTRA_FRAME_INFO struct frame_saved_regs fsr; int status; int stack_size; -extern void mn10200_init_extra_frame_info PARAMS ((struct frame_info *)); +extern void mn10200_init_extra_frame_info (struct frame_info *); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) mn10200_init_extra_frame_info (fi) #define INIT_FRAME_PC(x,y) -extern void mn10200_frame_find_saved_regs PARAMS ((struct frame_info *, - struct frame_saved_regs *)); +extern void mn10200_frame_find_saved_regs (struct frame_info *, + struct frame_saved_regs *); #define FRAME_FIND_SAVED_REGS(fi, regaddr) regaddr = fi->fsr -extern CORE_ADDR mn10200_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR mn10200_frame_chain (struct frame_info *); #define FRAME_CHAIN(fi) mn10200_frame_chain (fi) #define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI) -extern CORE_ADDR mn10200_find_callers_reg PARAMS ((struct frame_info *, int)); -extern CORE_ADDR mn10200_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR mn10200_find_callers_reg (struct frame_info *, int); +extern CORE_ADDR mn10200_frame_saved_pc (struct frame_info *); #define FRAME_SAVED_PC(FI) (mn10200_frame_saved_pc (FI)) /* Extract from an array REGBUF containing the (raw) register state @@ -166,7 +166,7 @@ extern CORE_ADDR mn10200_store_struct_return (CORE_ADDR addr, CORE_ADDR sp); #define STORE_STRUCT_RETURN(STRUCT_ADDR, SP) \ (SP) = mn10200_store_struct_return (STRUCT_ADDR, SP) -extern CORE_ADDR mn10200_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR mn10200_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (mn10200_skip_prologue (pc)) #define FRAME_ARGS_SKIP 0 @@ -175,7 +175,7 @@ extern CORE_ADDR mn10200_skip_prologue PARAMS ((CORE_ADDR)); #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame) #define FRAME_NUM_ARGS(fi) (-1) -extern void mn10200_pop_frame PARAMS ((struct frame_info *)); +extern void mn10200_pop_frame (struct frame_info *); #define POP_FRAME mn10200_pop_frame (get_current_frame ()) #define USE_GENERIC_DUMMY_FRAMES 1 @@ -186,14 +186,14 @@ extern void mn10200_pop_frame PARAMS ((struct frame_info *)); #define FIX_CALL_DUMMY(DUMMY, START, FUNADDR, NARGS, ARGS, TYPE, GCCP) #define CALL_DUMMY_ADDRESS() entry_point_address () -extern CORE_ADDR mn10200_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR mn10200_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) mn10200_push_return_address (PC, SP) #define PUSH_DUMMY_FRAME generic_push_dummy_frame () extern CORE_ADDR - mn10200_push_arguments PARAMS ((int, struct value **, CORE_ADDR, - unsigned char, CORE_ADDR)); +mn10200_push_arguments (int, struct value **, CORE_ADDR, + unsigned char, CORE_ADDR); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (mn10200_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)) diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h index 682df85..28981ab 100644 --- a/gdb/config/mn10300/tm-mn10300.h +++ b/gdb/config/mn10300/tm-mn10300.h @@ -38,7 +38,7 @@ #define REGISTER_BYTES (NUM_REGS * REGISTER_SIZE) -extern char *mn10300_register_name PARAMS ((int regnr)); +extern char *mn10300_register_name (int regnr); #define REGISTER_NAME(i) (mn10300_register_name (i)) #define D2_REGNUM 2 @@ -67,7 +67,7 @@ extern breakpoint_from_pc_fn mn10300_breakpoint_from_pc; #define INNER_THAN(lhs,rhs) ((lhs) < (rhs)) -extern CORE_ADDR mn10300_saved_pc_after_call PARAMS ((struct frame_info * frame)); +extern CORE_ADDR mn10300_saved_pc_after_call (struct frame_info *frame); #define SAVED_PC_AFTER_CALL(frame) \ mn10300_saved_pc_after_call (frame) @@ -75,33 +75,34 @@ struct frame_info; struct type; struct value; -extern void mn10300_init_extra_frame_info PARAMS ((struct frame_info *)); +extern void mn10300_init_extra_frame_info (struct frame_info *); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) mn10300_init_extra_frame_info (fi) #define INIT_FRAME_PC /* Not necessary */ #define FRAME_INIT_SAVED_REGS(fi) /* handled by init_extra_frame_info */ -extern CORE_ADDR mn10300_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR mn10300_frame_chain (struct frame_info *); #define FRAME_CHAIN(fi) mn10300_frame_chain (fi) #define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI) -extern CORE_ADDR mn10300_find_callers_reg PARAMS ((struct frame_info *, int)); -extern CORE_ADDR mn10300_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR mn10300_find_callers_reg (struct frame_info *, int); +extern CORE_ADDR mn10300_frame_saved_pc (struct frame_info *); #define FRAME_SAVED_PC(FI) (mn10300_frame_saved_pc (FI)) /* Extract from an array REGBUF containing the (raw) register state a function return value of type TYPE, and copy that, in virtual format, into VALBUF. */ -extern void mn10300_extract_return_value PARAMS ((struct type * type, char *regbuf, char *valbuf)); +extern void mn10300_extract_return_value (struct type *type, char *regbuf, + char *valbuf); #define EXTRACT_RETURN_VALUE(TYPE, REGBUF, VALBUF) \ mn10300_extract_return_value (TYPE, REGBUF, VALBUF) -CORE_ADDR mn10300_extract_struct_value_address PARAMS ((char *regbuf)); +CORE_ADDR mn10300_extract_struct_value_address (char *regbuf); #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \ mn10300_extract_struct_value_address (REGBUF) -void mn10300_store_return_value PARAMS ((struct type * type, char *valbuf)); +void mn10300_store_return_value (struct type *type, char *valbuf); #define STORE_RETURN_VALUE(TYPE, VALBUF) \ mn10300_store_return_value (TYPE, VALBUF) @@ -110,7 +111,7 @@ extern CORE_ADDR mn10300_store_struct_return (CORE_ADDR addr, CORE_ADDR sp); #define STORE_STRUCT_RETURN(STRUCT_ADDR, SP) \ (mn10300_store_struct_return (STRUCT_ADDR, SP)) -extern CORE_ADDR mn10300_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR mn10300_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (mn10300_skip_prologue (pc)) #define FRAME_ARGS_SKIP 0 @@ -119,7 +120,7 @@ extern CORE_ADDR mn10300_skip_prologue PARAMS ((CORE_ADDR)); #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame) #define FRAME_NUM_ARGS(fi) (-1) -extern void mn10300_pop_frame PARAMS ((struct frame_info *)); +extern void mn10300_pop_frame (struct frame_info *); #define POP_FRAME mn10300_pop_frame (get_current_frame ()) #define USE_GENERIC_DUMMY_FRAMES 1 @@ -132,15 +133,15 @@ extern void mn10300_pop_frame PARAMS ((struct frame_info *)); #define TARGET_READ_FP() read_sp () -extern CORE_ADDR mn10300_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR mn10300_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) mn10300_push_return_address (PC, SP) #define PUSH_DUMMY_FRAME generic_push_dummy_frame () #define SAVE_DUMMY_FRAME_TOS(SP) generic_save_dummy_frame_tos (SP) extern CORE_ADDR - mn10300_push_arguments PARAMS ((int, struct value **, CORE_ADDR, - unsigned char, CORE_ADDR)); +mn10300_push_arguments (int, struct value **, CORE_ADDR, + unsigned char, CORE_ADDR); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (mn10300_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)) @@ -158,6 +159,6 @@ extern use_struct_convention_fn mn10300_use_struct_convention; generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval) /* Cons up virtual frame pointer for trace */ -extern void mn10300_virtual_frame_pointer PARAMS ((CORE_ADDR, long *, long *)); +extern void mn10300_virtual_frame_pointer (CORE_ADDR, long *, long *); #define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \ mn10300_virtual_frame_pointer ((PC), (REGP), (OFFP)) diff --git a/gdb/config/nm-linux.h b/gdb/config/nm-linux.h index ecf4711..376eb93 100644 --- a/gdb/config/nm-linux.h +++ b/gdb/config/nm-linux.h @@ -38,15 +38,12 @@ struct objfile; /* Hook to look at new objfiles (shared libraries) */ -extern void -linuxthreads_new_objfile PARAMS ((struct objfile *objfile)); +extern void linuxthreads_new_objfile (struct objfile *objfile); /* Method to print a human-readable thread description */ -extern char * -linuxthreads_pid_to_str PARAMS ((int pid)); +extern char *linuxthreads_pid_to_str (int pid); -extern int -linuxthreads_prepare_to_proceed PARAMS ((int step)); +extern int linuxthreads_prepare_to_proceed (int step); #define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1) /* Defined to make stepping-over-breakpoints be thread-atomic. */ diff --git a/gdb/config/nm-lynx.h b/gdb/config/nm-lynx.h index 88974b1..4a6f6e4 100644 --- a/gdb/config/nm-lynx.h +++ b/gdb/config/nm-lynx.h @@ -70,7 +70,7 @@ #include "target.h" -extern int child_wait PARAMS ((int pid, struct target_waitstatus * status)); +extern int child_wait (int pid, struct target_waitstatus *status); /* Lynx needs a special definition of this so that we can print out the pid and thread number seperatly. */ @@ -78,6 +78,6 @@ extern int child_wait PARAMS ((int pid, struct target_waitstatus * status)); /* override child_pid_to_str in inftarg.c */ #define CHILD_PID_TO_STR -extern char *lynx_pid_to_str PARAMS ((int pid)); +extern char *lynx_pid_to_str (int pid); #endif /* NM_LYNX_H */ diff --git a/gdb/config/ns32k/nm-nbsd.h b/gdb/config/ns32k/nm-nbsd.h index e4aa02e..613b569 100644 --- a/gdb/config/ns32k/nm-nbsd.h +++ b/gdb/config/ns32k/nm-nbsd.h @@ -31,7 +31,6 @@ #define REGISTER_U_ADDR(addr, blockend, regno) \ (addr) = ns32k_register_u_addr ((blockend),(regno)); -extern int -ns32k_register_u_addr PARAMS ((int, int)); +extern int ns32k_register_u_addr (int, int); #endif /* NM_NBSD_H */ diff --git a/gdb/config/ns32k/tm-merlin.h b/gdb/config/ns32k/tm-merlin.h index 5fa06b8..ff74d08 100644 --- a/gdb/config/ns32k/tm-merlin.h +++ b/gdb/config/ns32k/tm-merlin.h @@ -28,7 +28,7 @@ /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR merlin_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR merlin_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (merlin_skip_prologue (pc)) /* Immediately after a function call, return the saved pc. @@ -193,7 +193,7 @@ extern CORE_ADDR merlin_skip_prologue PARAMS ((CORE_ADDR)); /* Return number of args passed to a frame. Can return -1, meaning no way to tell. */ -extern int merlin_frame_num_args PARAMS ((struct frame_info * fi)); +extern int merlin_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (merlin_frame_num_args ((fi))) /* Return number of bytes at start of arglist that are not really args. */ diff --git a/gdb/config/ns32k/tm-umax.h b/gdb/config/ns32k/tm-umax.h index 392d328..db8c978 100644 --- a/gdb/config/ns32k/tm-umax.h +++ b/gdb/config/ns32k/tm-umax.h @@ -34,7 +34,7 @@ /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR umax_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR umax_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (umax_skip_prologue (pc)) /* Immediately after a function call, return the saved pc. @@ -232,7 +232,7 @@ extern CORE_ADDR ns32k_get_enter_addr (); ways in the stack frame. sp is even more special: the address we return for it IS the sp for the next frame. */ -extern int umax_frame_num_args PARAMS ((struct frame_info * fi)); +extern int umax_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (umax_frame_num_args ((fi))) /* Things needed for making the inferior call functions. */ diff --git a/gdb/config/pa/nm-hppah.h b/gdb/config/pa/nm-hppah.h index c7466ca..1af0ec9 100644 --- a/gdb/config/pa/nm-hppah.h +++ b/gdb/config/pa/nm-hppah.h @@ -70,7 +70,7 @@ /* While this is for use by threaded programs, it doesn't appear * to hurt non-threaded ones. This is used in infrun.c: */ #define PREPARE_TO_PROCEED(select_it) hppa_prepare_to_proceed() -extern int hppa_prepare_to_proceed PARAMS ((void)); +extern int hppa_prepare_to_proceed (void); /* In infptrace.c or infttrace.c: */ #define CHILD_PID_TO_EXEC_FILE @@ -93,10 +93,10 @@ extern int hppa_prepare_to_proceed PARAMS ((void)); #define CHILD_PID_TO_STR #define REQUIRE_ATTACH(pid) hppa_require_attach(pid) -extern int hppa_require_attach PARAMS ((int)); +extern int hppa_require_attach (int); #define REQUIRE_DETACH(pid,signal) hppa_require_detach(pid,signal) -extern int hppa_require_detach PARAMS ((int, int)); +extern int hppa_require_detach (int, int); /* So we can cleanly use code in infptrace.c. */ #define PT_KILL PT_EXIT @@ -210,11 +210,11 @@ extern int hppa_require_detach PARAMS ((int, int)); */ #define TARGET_ENABLE_HW_WATCHPOINTS(pid) \ hppa_enable_page_protection_events (pid) -extern void hppa_enable_page_protection_events PARAMS ((int)); +extern void hppa_enable_page_protection_events (int); #define TARGET_DISABLE_HW_WATCHPOINTS(pid) \ hppa_disable_page_protection_events (pid) -extern void hppa_disable_page_protection_events PARAMS ((int)); +extern void hppa_disable_page_protection_events (int); /* Use these macros for watchpoint insertion/deletion. */ #define target_insert_watchpoint(addr, len, type) \ @@ -228,11 +228,11 @@ extern void hppa_disable_page_protection_events PARAMS ((int)); * the string. Code is in hppah-nat.c. */ -extern char *child_pid_to_str PARAMS ((pid_t)); +extern char *child_pid_to_str (pid_t); #define target_tid_to_str( pid ) \ hppa_tid_to_str( pid ) -extern char *hppa_tid_to_str PARAMS ((pid_t)); +extern char *hppa_tid_to_str (pid_t); /* For this, ID can be either a process or thread ID, and the function will describe it appropriately, returning the description as a printable @@ -243,7 +243,7 @@ extern char *hppa_tid_to_str PARAMS ((pid_t)); */ #define target_pid_or_tid_to_str(ID) \ hppa_pid_or_tid_to_str (ID) -extern char *hppa_pid_or_tid_to_str PARAMS ((pid_t)); +extern char *hppa_pid_or_tid_to_str (pid_t); /* This is used when handling events caused by a call to vfork(). On ptrace- based HP-UXs, when you resume the vforked child, the parent automagically @@ -261,7 +261,7 @@ extern char *hppa_pid_or_tid_to_str PARAMS ((pid_t)); */ #define ENSURE_VFORKING_PARENT_REMAINS_STOPPED(PID) \ hppa_ensure_vforking_parent_remains_stopped (PID) -extern void hppa_ensure_vforking_parent_remains_stopped PARAMS ((int)); +extern void hppa_ensure_vforking_parent_remains_stopped (int); /* This is used when handling events caused by a call to vfork(). @@ -275,7 +275,7 @@ extern void hppa_ensure_vforking_parent_remains_stopped PARAMS ((int)); */ #define RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK() \ hppa_resume_execd_vforking_child_to_get_parent_vfork () -extern int hppa_resume_execd_vforking_child_to_get_parent_vfork PARAMS ((void)); +extern int hppa_resume_execd_vforking_child_to_get_parent_vfork (void); #define HPUXHPPA diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h index 975820a..2dbb74b 100644 --- a/gdb/config/pa/tm-hppa.h +++ b/gdb/config/pa/tm-hppa.h @@ -70,24 +70,24 @@ struct inferior_status; /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR hppa_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR hppa_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (hppa_skip_prologue (pc)) /* If PC is in some function-call trampoline code, return the PC where the function itself actually starts. If not, return NULL. */ #define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, NULL) -extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR, char *)); +extern CORE_ADDR skip_trampoline_code (CORE_ADDR, char *); /* Return non-zero if we are in an appropriate trampoline. */ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \ in_solib_call_trampoline (pc, name) -extern int in_solib_call_trampoline PARAMS ((CORE_ADDR, char *)); +extern int in_solib_call_trampoline (CORE_ADDR, char *); #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \ in_solib_return_trampoline (pc, name) -extern int in_solib_return_trampoline PARAMS ((CORE_ADDR, char *)); +extern int in_solib_return_trampoline (CORE_ADDR, char *); /* Immediately after a function call, return the saved pc. Can't go through the frames for this because on some machines @@ -96,7 +96,7 @@ extern int in_solib_return_trampoline PARAMS ((CORE_ADDR, char *)); #undef SAVED_PC_AFTER_CALL #define SAVED_PC_AFTER_CALL(frame) saved_pc_after_call (frame) -extern CORE_ADDR saved_pc_after_call PARAMS ((struct frame_info *)); +extern CORE_ADDR saved_pc_after_call (struct frame_info *); /* Stack grows upward */ #define INNER_THAN(lhs,rhs) ((lhs) > (rhs)) @@ -258,7 +258,7 @@ extern CORE_ADDR saved_pc_after_call PARAMS ((struct frame_info *)); of register dumps. */ #define DO_REGISTERS_INFO(_regnum, fp) pa_do_registers_info (_regnum, fp) -extern void pa_do_registers_info PARAMS ((int, int)); +extern void pa_do_registers_info (int, int); #if 0 #define STRCAT_REGISTER(regnum, fpregs, stream, precision) pa_do_strcat_registers_info (regnum, fpregs, stream, precision) @@ -403,7 +403,7 @@ extern use_struct_convention_fn hppa_use_struct_convention; ((regno) > IPSW_REGNUM && (regno) < FP4_REGNUM) #define INIT_EXTRA_FRAME_INFO(fromleaf, frame) init_extra_frame_info (fromleaf, frame) -extern void init_extra_frame_info PARAMS ((int, struct frame_info *)); +extern void init_extra_frame_info (int, struct frame_info *); /* Describe the pointer in each stack frame to the previous stack frame (its caller). */ @@ -423,9 +423,9 @@ extern void init_extra_frame_info PARAMS ((int, struct frame_info *)); address (previous FP). */ #define FRAME_CHAIN(thisframe) frame_chain (thisframe) -extern CORE_ADDR frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR frame_chain (struct frame_info *); -extern int hppa_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); +extern int hppa_frame_chain_valid (CORE_ADDR, struct frame_info *); #define FRAME_CHAIN_VALID(chain, thisframe) hppa_frame_chain_valid (chain, thisframe) #define FRAME_CHAIN_COMBINE(chain, thisframe) (chain) @@ -437,9 +437,9 @@ extern int hppa_frame_chain_valid PARAMS ((CORE_ADDR, struct frame_info *)); does not, FRAMELESS is set to 1, else 0. */ #define FRAMELESS_FUNCTION_INVOCATION(FI) \ (frameless_function_invocation (FI)) -extern int frameless_function_invocation PARAMS ((struct frame_info *)); +extern int frameless_function_invocation (struct frame_info *); -extern CORE_ADDR hppa_frame_saved_pc PARAMS ((struct frame_info * frame)); +extern CORE_ADDR hppa_frame_saved_pc (struct frame_info *frame); #define FRAME_SAVED_PC(FRAME) hppa_frame_saved_pc (FRAME) #define FRAME_ARGS_ADDRESS(fi) ((fi)->frame) @@ -459,8 +459,7 @@ extern CORE_ADDR hppa_frame_saved_pc PARAMS ((struct frame_info * frame)); #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ hppa_frame_find_saved_regs (frame_info, &frame_saved_regs) extern void -hppa_frame_find_saved_regs PARAMS ((struct frame_info *, - struct frame_saved_regs *)); +hppa_frame_find_saved_regs (struct frame_info *, struct frame_saved_regs *); /* Things needed for making the inferior call functions. */ @@ -468,12 +467,12 @@ hppa_frame_find_saved_regs PARAMS ((struct frame_info *, /* Push an empty stack frame, to record the current PC, etc. */ #define PUSH_DUMMY_FRAME push_dummy_frame (inf_status) -extern void push_dummy_frame PARAMS ((struct inferior_status *)); +extern void push_dummy_frame (struct inferior_status *); /* Discard from the stack the innermost frame, restoring all saved registers. */ #define POP_FRAME hppa_pop_frame () -extern void hppa_pop_frame PARAMS ((void)); +extern void hppa_pop_frame (void); #define INSTRUCTION_SIZE 4 @@ -619,14 +618,13 @@ extern void hppa_pop_frame PARAMS ((void)); #define FIX_CALL_DUMMY hppa_fix_call_dummy extern CORE_ADDR - hppa_fix_call_dummy PARAMS ((char *, CORE_ADDR, CORE_ADDR, int, - struct value **, struct type *, int)); +hppa_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, int, + struct value **, struct type *, int); #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (hppa_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) extern CORE_ADDR - hppa_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, - CORE_ADDR)); +hppa_push_arguments (int, struct value **, CORE_ADDR, int, CORE_ADDR); /* The low two bits of the PC on the PA contain the privilege level. Some genius implementing a (non-GCC) compiler apparently decided this means @@ -760,26 +758,25 @@ typedef struct obj_private_struct obj_private_data_t; #if 0 -extern void target_write_pc -PARAMS ((CORE_ADDR, int)) - extern CORE_ADDR target_read_pc PARAMS ((int)); - extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR, char *)); +extern void target_write_pc (CORE_ADDR, int); +extern CORE_ADDR target_read_pc (int); +extern CORE_ADDR skip_trampoline_code (CORE_ADDR, char *); #endif #define TARGET_READ_PC(pid) target_read_pc (pid) - extern CORE_ADDR target_read_pc PARAMS ((int)); +extern CORE_ADDR target_read_pc (int); #define TARGET_WRITE_PC(v,pid) target_write_pc (v,pid) - extern void target_write_pc PARAMS ((CORE_ADDR, int)); +extern void target_write_pc (CORE_ADDR, int); #define TARGET_READ_FP() target_read_fp (inferior_pid) - extern CORE_ADDR target_read_fp PARAMS ((int)); +extern CORE_ADDR target_read_fp (int); /* For a number of horrible reasons we may have to adjust the location of variables on the stack. Ugh. */ #define HPREAD_ADJUST_STACK_ADDRESS(ADDR) hpread_adjust_stack_address(ADDR) - extern int hpread_adjust_stack_address PARAMS ((CORE_ADDR)); +extern int hpread_adjust_stack_address (CORE_ADDR); /* If the current gcc for for this target does not produce correct debugging information for float parameters, both prototyped and unprototyped, then diff --git a/gdb/config/pa/tm-hppa64.h b/gdb/config/pa/tm-hppa64.h index 7f30c66..7165477 100644 --- a/gdb/config/pa/tm-hppa64.h +++ b/gdb/config/pa/tm-hppa64.h @@ -140,7 +140,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ of variables on the stack. Ugh. jimb: why? */ #define HPREAD_ADJUST_STACK_ADDRESS(ADDR) hpread_adjust_stack_address(ADDR) -extern int hpread_adjust_stack_address PARAMS ((CORE_ADDR)); +extern int hpread_adjust_stack_address (CORE_ADDR); /* jimb: omitted dynamic linking stuff here */ diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h index 1542d32..913b70a 100644 --- a/gdb/config/pa/xm-hppah.h +++ b/gdb/config/pa/xm-hppah.h @@ -40,11 +40,8 @@ #define MALLOC_INCOMPATIBLE -extern void * - malloc PARAMS ((size_t)); +extern void *malloc (size_t); -extern void * - realloc PARAMS ((void *, size_t)); +extern void *realloc (void *, size_t); -extern void -free PARAMS ((void *)); +extern void free (void *); diff --git a/gdb/config/powerpc/nm-linux.h b/gdb/config/powerpc/nm-linux.h index fb44d88..0ef531c 100644 --- a/gdb/config/powerpc/nm-linux.h +++ b/gdb/config/powerpc/nm-linux.h @@ -26,7 +26,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); /* Tell gdb that we can attach and detach other processes */ #define ATTACH_DETACH @@ -51,16 +51,13 @@ extern int kernel_u_size PARAMS ((void)); struct objfile; #endif -extern void -linuxthreads_new_objfile PARAMS ((struct objfile *objfile)); +extern void linuxthreads_new_objfile (struct objfile *objfile); #define target_new_objfile(OBJFILE) linuxthreads_new_objfile (OBJFILE) -extern char * -linuxthreads_pid_to_str PARAMS ((int pid)); +extern char *linuxthreads_pid_to_str (int pid); #define target_pid_to_str(PID) linuxthreads_pid_to_str (PID) -extern int -linuxthreads_prepare_to_proceed PARAMS ((int step)); +extern int linuxthreads_prepare_to_proceed (int step); #define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1) diff --git a/gdb/config/powerpc/tm-linux.h b/gdb/config/powerpc/tm-linux.h index 43fa60f..b1abb0e 100644 --- a/gdb/config/powerpc/tm-linux.h +++ b/gdb/config/powerpc/tm-linux.h @@ -75,7 +75,8 @@ CORE_ADDR ppc_linux_frame_chain (struct frame_info *); #undef FRAME_CHAIN #define FRAME_CHAIN(thisframe) ppc_linux_frame_chain (thisframe) -CORE_ADDR ppc_sysv_abi_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); +CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int, + CORE_ADDR); #undef PUSH_ARGUMENTS #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (ppc_sysv_abi_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) diff --git a/gdb/config/powerpc/tm-ppc-eabi.h b/gdb/config/powerpc/tm-ppc-eabi.h index 5b85be8..2e333a8 100644 --- a/gdb/config/powerpc/tm-ppc-eabi.h +++ b/gdb/config/powerpc/tm-ppc-eabi.h @@ -54,9 +54,9 @@ /* target-specific dummy_frame stuff */ -extern struct frame_info *rs6000_pop_frame PARAMS ((struct frame_info * frame)); +extern struct frame_info *rs6000_pop_frame (struct frame_info *frame); -extern CORE_ADDR ppc_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR ppc_push_return_address (CORE_ADDR, CORE_ADDR); #undef PUSH_DUMMY_FRAME #define PUSH_DUMMY_FRAME generic_push_dummy_frame () diff --git a/gdb/config/powerpc/tm-solaris.h b/gdb/config/powerpc/tm-solaris.h index 67ddb52..9d71775 100644 --- a/gdb/config/powerpc/tm-solaris.h +++ b/gdb/config/powerpc/tm-solaris.h @@ -54,8 +54,7 @@ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) #endif /* 0 */ @@ -65,7 +64,7 @@ get_longjmp_target PARAMS ((CORE_ADDR *)); #define SOFUN_ADDRESS_MAYBE_MISSING #if 0 -extern char *sunpro_static_transform_name PARAMS ((char *)); +extern char *sunpro_static_transform_name (char *); #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x) #endif diff --git a/gdb/config/powerpc/xm-aix.h b/gdb/config/powerpc/xm-aix.h index c5a5ca9..aeb2995 100644 --- a/gdb/config/powerpc/xm-aix.h +++ b/gdb/config/powerpc/xm-aix.h @@ -22,7 +22,7 @@ #include "xm-aix4.h" /* This doesn't seem to be declared in any header file I can find. */ -char *termdef PARAMS ((int, int)); +char *termdef (int, int); /* UINT_MAX is defined in <sys/limits.h> as a decimal constant (4294967295) which is too large to fit in a signed int when it is parsed by the diff --git a/gdb/config/rs6000/nm-rs6000.h b/gdb/config/rs6000/nm-rs6000.h index 52a98f0..3d237bc 100644 --- a/gdb/config/rs6000/nm-rs6000.h +++ b/gdb/config/rs6000/nm-rs6000.h @@ -49,11 +49,11 @@ /* Core file. */ \ xcoff_relocate_core (c); -extern void xcoff_relocate_symtab PARAMS ((unsigned int)); +extern void xcoff_relocate_symtab (unsigned int); struct target_ops; -extern void xcoff_relocate_core PARAMS ((struct target_ops *)); +extern void xcoff_relocate_core (struct target_ops *); /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); diff --git a/gdb/config/rs6000/tm-rs6000.h b/gdb/config/rs6000/tm-rs6000.h index 3b3e190..36866b3 100644 --- a/gdb/config/rs6000/tm-rs6000.h +++ b/gdb/config/rs6000/tm-rs6000.h @@ -32,7 +32,7 @@ struct value; /* Load segment of a given pc value. */ #define PC_LOAD_SEGMENT(PC) pc_load_segment_name(PC) -extern char *pc_load_segment_name PARAMS ((CORE_ADDR)); +extern char *pc_load_segment_name (CORE_ADDR); /* AIX cc seems to get this right. */ @@ -100,17 +100,17 @@ struct rs6000_framedata /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR rs6000_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR rs6000_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (rs6000_skip_prologue (pc)) -extern CORE_ADDR skip_prologue PARAMS ((CORE_ADDR, struct rs6000_framedata *)); +extern CORE_ADDR skip_prologue (CORE_ADDR, struct rs6000_framedata *); /* If PC is in some function-call trampoline code, return the PC where the function itself actually starts. If not, return NULL. */ #define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc) -extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR)); +extern CORE_ADDR skip_trampoline_code (CORE_ADDR); /* Number of trap signals we need to skip over, once the inferior process starts running. */ @@ -136,7 +136,7 @@ extern CORE_ADDR skip_trampoline_code PARAMS ((CORE_ADDR)); once, when we are closing the current symbol table in end_symtab(). */ #define PROCESS_LINENUMBER_HOOK() aix_process_linenos () -extern void aix_process_linenos PARAMS ((void)); +extern void aix_process_linenos (void); /* Immediately after a function call, return the saved pc. Can't go through the frames for this because on some machines @@ -160,7 +160,8 @@ extern void aix_process_linenos PARAMS ((void)); #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ (rs6000_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) -extern CORE_ADDR rs6000_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); +extern CORE_ADDR rs6000_push_arguments (int, struct value **, CORE_ADDR, int, + CORE_ADDR); /* BREAKPOINT_FROM_PC uses the program counter value to determine the breakpoint that should be used */ @@ -334,7 +335,7 @@ extern CORE_ADDR rs6000_struct_return_address; #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ extract_return_value(TYPE,REGBUF,VALBUF) -extern void extract_return_value PARAMS ((struct type *, char[], char *)); +extern void extract_return_value (struct type *, char[], char *); /* Write into appropriate registers a function return value of type TYPE, given in virtual format. */ @@ -372,7 +373,7 @@ extern void extract_return_value PARAMS ((struct type *, char[], char *)); is the address of a 4-byte word containing the calling frame's address. */ #define FRAME_CHAIN(thisframe) rs6000_frame_chain (thisframe) -CORE_ADDR rs6000_frame_chain PARAMS ((struct frame_info *)); +CORE_ADDR rs6000_frame_chain (struct frame_info *); /* Define other aspects of the stack frame. */ @@ -410,7 +411,7 @@ extern void rs6000_init_extra_frame_info (int fromleaf, struct frame_info *); extern unsigned long rs6000_frame_saved_pc (struct frame_info *); -extern CORE_ADDR rs6000_frame_args_address PARAMS ((struct frame_info *)); +extern CORE_ADDR rs6000_frame_args_address (struct frame_info *); #define FRAME_ARGS_ADDRESS(FI) rs6000_frame_args_address (FI) #define FRAME_LOCALS_ADDRESS(FI) FRAME_ARGS_ADDRESS(FI) @@ -437,7 +438,7 @@ extern CORE_ADDR rs6000_frame_args_address PARAMS ((struct frame_info *)); not sure if it will be needed. The following macro takes care of gpr's and fpr's only. */ -extern void rs6000_frame_init_saved_regs PARAMS ((struct frame_info *)); +extern void rs6000_frame_init_saved_regs (struct frame_info *); #define FRAME_INIT_SAVED_REGS(FI) rs6000_frame_init_saved_regs (FI) /* Things needed for making the inferior call functions. */ @@ -446,13 +447,13 @@ extern void rs6000_frame_init_saved_regs PARAMS ((struct frame_info *)); /* Change these names into rs6k_{push, pop}_frame(). FIXMEmgo. */ #define PUSH_DUMMY_FRAME push_dummy_frame () -extern void push_dummy_frame PARAMS ((void)); +extern void push_dummy_frame (void); /* Discard from the stack the innermost frame, restoring all saved registers. */ #define POP_FRAME pop_frame () -extern void pop_frame PARAMS ((void)); +extern void pop_frame (void); /* This sequence of words is the instructions: @@ -505,9 +506,8 @@ extern void pop_frame PARAMS ((void)); #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ rs6000_fix_call_dummy (dummyname, pc, fun, nargs, args, type, gcc_p) -extern void rs6000_fix_call_dummy PARAMS ((char *, CORE_ADDR, CORE_ADDR, - int, struct value **, - struct type *, int)); +extern void rs6000_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR, + int, struct value **, struct type *, int); /* Hook in rs6000-tdep.c for determining the TOC address when calling functions in the inferior. */ @@ -520,7 +520,7 @@ CORE_ADDR (*find_toc_address_hook) PARAMS ((CORE_ADDR)); TOC address when calling functions in the inferior. */ struct objfile; -extern CORE_ADDR get_toc_offset PARAMS ((struct objfile *)); +extern CORE_ADDR get_toc_offset (struct objfile *); /* Usually a function pointer's representation is simply the address of the function. On the RS/6000 however, a function pointer is @@ -538,7 +538,7 @@ extern CORE_ADDR get_toc_offset PARAMS ((struct objfile *)); #define CONVERT_FROM_FUNC_PTR_ADDR(ADDR) \ (is_magic_function_pointer (ADDR) ? read_memory_integer (ADDR, 4) : (ADDR)) - extern int is_magic_function_pointer PARAMS ((CORE_ADDR)); +extern int is_magic_function_pointer (CORE_ADDR); /* Flag for machine-specific stuff in shared files. FIXME */ #define IBM6000_TARGET @@ -546,7 +546,7 @@ extern CORE_ADDR get_toc_offset PARAMS ((struct objfile *)); /* RS6000/AIX does not support PT_STEP. Has to be simulated. */ #define SOFTWARE_SINGLE_STEP_P 1 - extern void rs6000_software_single_step PARAMS ((unsigned int, int)); +extern void rs6000_software_single_step (unsigned int, int); #define SOFTWARE_SINGLE_STEP(sig,bp_p) rs6000_software_single_step (sig, bp_p) /* If the current gcc for for this target does not produce correct debugging diff --git a/gdb/config/rs6000/xm-rs6000.h b/gdb/config/rs6000/xm-rs6000.h index 9efeaa6..24a9e50 100644 --- a/gdb/config/rs6000/xm-rs6000.h +++ b/gdb/config/rs6000/xm-rs6000.h @@ -68,15 +68,15 @@ #define SETPGRP_ARGS 1 /* AIX doesn't have strdup, so we need to declare it for libiberty */ -extern char *strdup PARAMS ((char *)); +extern char *strdup (char *); /* Signal handler for SIGWINCH `window size changed'. */ #define SIGWINCH_HANDLER aix_resizewindow -extern void aix_resizewindow PARAMS ((int)); +extern void aix_resizewindow (int); /* This doesn't seem to be declared in any header file I can find. */ -char *termdef PARAMS ((int, int)); +char *termdef (int, int); /* `lines_per_page' and `chars_per_line' are local to utils.c. Rectify this. */ diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index 47256ae..ca6d9e5 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -42,7 +42,7 @@ struct type; /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR sh_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR sh_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(ip) (sh_skip_prologue (ip)) /* Immediately after a function call, return the saved pc. @@ -176,7 +176,7 @@ extern use_struct_convention_fn sh_use_struct_convention; a function return value of type TYPE, and copy that, in virtual format, into VALBUF. */ -extern void sh_extract_return_value PARAMS ((struct type *, void *, void *)); +extern void sh_extract_return_value (struct type *, void *, void *); #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ sh_extract_return_value (TYPE, REGBUF, VALBUF) @@ -207,7 +207,7 @@ extern void sh_extract_return_value PARAMS ((struct type *, void *, void *)); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ sh_init_extra_frame_info(fromleaf, fi) -extern void sh_init_extra_frame_info PARAMS ((int, struct frame_info *)); +extern void sh_init_extra_frame_info (int, struct frame_info *); /* A macro that tells us whether the function invocation represented by FI does not have a frame on the stack associated with it. If it @@ -231,8 +231,8 @@ extern void sh_init_extra_frame_info PARAMS ((int, struct frame_info *)); #define FRAME_ARGS_SKIP 0 -extern void sh_frame_find_saved_regs PARAMS ((struct frame_info * fi, - struct frame_saved_regs * fsr)); +extern void sh_frame_find_saved_regs (struct frame_info *fi, + struct frame_saved_regs *fsr); /* Put here the code to store, into a struct frame_saved_regs, the addresses of the saved registers of frame described by FRAME_INFO. @@ -245,11 +245,11 @@ extern void sh_frame_find_saved_regs PARAMS ((struct frame_info * fi, typedef unsigned short INSN_WORD; -extern CORE_ADDR sh_push_arguments PARAMS ((int nargs, - struct value ** args, - CORE_ADDR sp, - unsigned char struct_return, - CORE_ADDR struct_addr)); +extern CORE_ADDR sh_push_arguments (int nargs, + struct value **args, + CORE_ADDR sp, + unsigned char struct_return, + CORE_ADDR struct_addr); #define USE_GENERIC_DUMMY_FRAMES 1 #define CALL_DUMMY {0} @@ -259,11 +259,11 @@ extern CORE_ADDR sh_push_arguments PARAMS ((int nargs, #define FIX_CALL_DUMMY(DUMMY, STARTADDR, FUNADDR, NARGS, ARGS, TYPE, GCCP) #define CALL_DUMMY_LOCATION AT_ENTRY_POINT #define CALL_DUMMY_ADDRESS() entry_point_address () -extern CORE_ADDR sh_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR sh_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) sh_push_return_address (PC, SP) -extern CORE_ADDR sh_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR sh_frame_chain (struct frame_info *); #define FRAME_CHAIN(FRAME) sh_frame_chain(FRAME) #define PUSH_DUMMY_FRAME generic_push_dummy_frame () #define FRAME_CHAIN_VALID(FP, FRAME) generic_file_frame_chain_valid (FP, FRAME) @@ -279,7 +279,7 @@ extern CORE_ADDR sh_frame_chain PARAMS ((struct frame_info *)); /* Discard from the stack the innermost frame, restoring all saved registers. */ -extern void sh_pop_frame PARAMS ((void)); +extern void sh_pop_frame (void); #define POP_FRAME sh_pop_frame(); #define NOP {0x20, 0x0b} diff --git a/gdb/config/sparc/nm-linux.h b/gdb/config/sparc/nm-linux.h index ffad2c7..781b97f 100644 --- a/gdb/config/sparc/nm-linux.h +++ b/gdb/config/sparc/nm-linux.h @@ -27,4 +27,4 @@ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); diff --git a/gdb/config/sparc/nm-sun4os4.h b/gdb/config/sparc/nm-sun4os4.h index dcd20fb..f883c95 100644 --- a/gdb/config/sparc/nm-sun4os4.h +++ b/gdb/config/sparc/nm-sun4os4.h @@ -33,4 +33,4 @@ /* Return sizeof user struct to callers in less machine dependent routines */ #define KERNEL_U_SIZE kernel_u_size() -extern int kernel_u_size PARAMS ((void)); +extern int kernel_u_size (void); diff --git a/gdb/config/sparc/nm-sun4sol2.h b/gdb/config/sparc/nm-sun4sol2.h index 9d5dd1d..4a24710 100644 --- a/gdb/config/sparc/nm-sun4sol2.h +++ b/gdb/config/sparc/nm-sun4sol2.h @@ -44,14 +44,14 @@ It will *NOT* be necessary for GDB to step over the watchpoint. */ #define HAVE_CONTINUABLE_WATCHPOINT -extern int procfs_stopped_by_watchpoint PARAMS ((int)); +extern int procfs_stopped_by_watchpoint (int); #define STOPPED_BY_WATCHPOINT(W) \ procfs_stopped_by_watchpoint(inferior_pid) /* Use these macros for watchpoint insertion/deletion. */ /* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ -extern int procfs_set_watchpoint PARAMS ((int, CORE_ADDR, int, int, int)); +extern int procfs_set_watchpoint (int, CORE_ADDR, int, int, int); #define target_insert_watchpoint(ADDR, LEN, TYPE) \ procfs_set_watchpoint (inferior_pid, ADDR, LEN, TYPE, 1) #define target_remove_watchpoint(ADDR, LEN, TYPE) \ diff --git a/gdb/config/sparc/tm-sp64.h b/gdb/config/sparc/tm-sp64.h index 378212d..099add3 100644 --- a/gdb/config/sparc/tm-sp64.h +++ b/gdb/config/sparc/tm-sp64.h @@ -172,8 +172,8 @@ sparc_at_entry_store_struct_return (CORE_ADDR addr, CORE_ADDR sp); #undef FIX_CALL_DUMMY #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ sparc_fix_call_dummy (dummyname, pc, fun, type, gcc_p) -void sparc_fix_call_dummy PARAMS ((char *dummy, CORE_ADDR pc, CORE_ADDR fun, - struct type * value_type, int using_gcc)); +void sparc_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, + struct type *value_type, int using_gcc); /* The remainder of these will accept the default definition. */ @@ -202,11 +202,8 @@ void sparc_fix_call_dummy PARAMS ((char *dummy, CORE_ADDR pc, CORE_ADDR fun, #undef USE_STRUCT_CONVENTION #define USE_STRUCT_CONVENTION(gcc_p, type) (TYPE_LENGTH (type) > 32) -CORE_ADDR sparc64_push_arguments PARAMS ((int, - struct value **, - CORE_ADDR, - int, - CORE_ADDR)); +CORE_ADDR sparc64_push_arguments (int, + struct value **, CORE_ADDR, int, CORE_ADDR); #undef PUSH_ARGUMENTS #define PUSH_ARGUMENTS(A,B,C,D,E) \ (sparc64_push_arguments ((A), (B), (C), (D), (E))) @@ -269,8 +266,8 @@ CORE_ADDR sparc64_push_arguments PARAMS ((int, extern CORE_ADDR sparc64_read_sp (); extern CORE_ADDR sparc64_read_fp (); -extern void sparc64_write_sp PARAMS ((CORE_ADDR)); -extern void sparc64_write_fp PARAMS ((CORE_ADDR)); +extern void sparc64_write_sp (CORE_ADDR); +extern void sparc64_write_fp (CORE_ADDR); #define TARGET_READ_SP() (sparc64_read_sp ()) #define TARGET_READ_FP() (sparc64_read_fp ()) @@ -280,8 +277,7 @@ extern void sparc64_write_fp PARAMS ((CORE_ADDR)); #undef EXTRACT_RETURN_VALUE #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ sp64_extract_return_value(TYPE, REGBUF, VALBUF, 0) -extern void -sp64_extract_return_value PARAMS ((struct type *, char[], char *, int)); +extern void sp64_extract_return_value (struct type *, char[], char *, int); /* Register numbers of various important registers. Note that some of these values are "real" register numbers, @@ -463,8 +459,7 @@ sp64_extract_return_value PARAMS ((struct type *, char[], char *, int)); land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/sparc/tm-sp64sim.h b/gdb/config/sparc/tm-sp64sim.h index 8d83db1..f4e63e2 100644 --- a/gdb/config/sparc/tm-sp64sim.h +++ b/gdb/config/sparc/tm-sp64sim.h @@ -45,7 +45,6 @@ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index 63148ce..4958747 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -270,7 +270,7 @@ extern int sparc_intreg_size (void); #define STORE_RETURN_VALUE(TYPE, VALBUF) \ sparc_store_return_value (TYPE, VALBUF) -extern void sparc_store_return_value PARAMS ((struct type *, char *)); +extern void sparc_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, @@ -279,8 +279,7 @@ extern void sparc_store_return_value PARAMS ((struct type *, char *)); #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \ sparc_extract_struct_value_address (REGBUF) -extern CORE_ADDR -sparc_extract_struct_value_address PARAMS ((char *)); +extern CORE_ADDR sparc_extract_struct_value_address (char *); /* If the current gcc for for this target does not produce correct debugging information for float parameters, both prototyped and @@ -334,7 +333,7 @@ extern int sparc_y_regnum (void); a fake insn, step past it. */ #define PC_ADJUST(PC) sparc_pc_adjust (PC) -extern CORE_ADDR sparc_pc_adjust PARAMS ((CORE_ADDR)); +extern CORE_ADDR sparc_pc_adjust (CORE_ADDR); /* Advance PC across any function entry prologue instructions to reach some "real" code. SKIP_PROLOGUE_FRAMELESS_P advances the PC past @@ -343,7 +342,7 @@ extern CORE_ADDR sparc_pc_adjust PARAMS ((CORE_ADDR)); function is frameless, unequal otherwise. */ #define SKIP_PROLOGUE_FRAMELESS_P(PC) sparc_skip_prologue (PC, 1) -extern CORE_ADDR sparc_skip_prologue PARAMS ((CORE_ADDR, int)); +extern CORE_ADDR sparc_skip_prologue (CORE_ADDR, int); /* If an argument is declared "register", Sun cc will keep it in a register, never saving it onto the stack. So we better not believe the "p" symbol @@ -475,12 +474,11 @@ extern CORE_ADDR sparc_skip_prologue PARAMS ((CORE_ADDR, int)); outs change into ins in different frames. HAVE_REGISTER_WINDOWS can't deal with this case and also handle flat frames at the same time. */ -void sparc_get_saved_register PARAMS ((char *raw_buffer, - int *optimized, - CORE_ADDR * addrp, - struct frame_info * frame, - int regnum, - enum lval_type * lvalp)); +void sparc_get_saved_register (char *raw_buffer, + int *optimized, + CORE_ADDR * addrp, + struct frame_info *frame, + int regnum, enum lval_type *lvalp); #define GET_SAVED_REGISTER(RAW_BUFFER, OPTIMIZED, ADDRP, FRAME, REGNUM, LVAL) \ sparc_get_saved_register (RAW_BUFFER, OPTIMIZED, ADDRP, \ @@ -490,10 +488,10 @@ void sparc_get_saved_register PARAMS ((char *raw_buffer, #define INIT_EXTRA_FRAME_INFO(FROMLEAF, FCI) \ sparc_init_extra_frame_info (FROMLEAF, FCI) -extern void sparc_init_extra_frame_info PARAMS ((int, struct frame_info *)); +extern void sparc_init_extra_frame_info (int, struct frame_info *); #define FRAME_CHAIN(THISFRAME) (sparc_frame_chain (THISFRAME)) -extern CORE_ADDR sparc_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR sparc_frame_chain (struct frame_info *); /* A macro that tells us whether the function invocation represented by FI does not have a frame on the stack associated with it. If it @@ -505,7 +503,7 @@ extern CORE_ADDR sparc_frame_chain PARAMS ((struct frame_info *)); /* Where is the PC for a specific frame */ #define FRAME_SAVED_PC(FRAME) sparc_frame_saved_pc (FRAME) -extern CORE_ADDR sparc_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR sparc_frame_saved_pc (struct frame_info *); /* If the argument is on the stack, it will be here. */ #define FRAME_ARGS_ADDRESS(FI) ((FI)->frame) @@ -689,8 +687,8 @@ extern void sparc_print_extra_frame_info (struct frame_info *); #define FIX_CALL_DUMMY(DUMMYNAME, PC, FUN, NARGS, ARGS, TYPE, GCC_P) \ sparc_fix_call_dummy (DUMMYNAME, PC, FUN, TYPE, GCC_P) -void sparc_fix_call_dummy PARAMS ((char *dummy, CORE_ADDR pc, CORE_ADDR fun, - struct type * value_type, int using_gcc)); +void sparc_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, + struct type *value_type, int using_gcc); /* Arguments smaller than an int must be promoted to ints when synthesizing function calls. */ @@ -700,18 +698,14 @@ void sparc_fix_call_dummy PARAMS ((char *dummy, CORE_ADDR pc, CORE_ADDR fun, #define PUSH_DUMMY_FRAME sparc_push_dummy_frame () #define POP_FRAME sparc_pop_frame () -void sparc_push_dummy_frame PARAMS ((void)); -void sparc_pop_frame PARAMS ((void)); +void sparc_push_dummy_frame (void); +void sparc_pop_frame (void); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ sparc32_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) extern CORE_ADDR -sparc32_push_arguments PARAMS ((int, - struct value **, - CORE_ADDR, - int, - CORE_ADDR)); +sparc32_push_arguments (int, struct value **, CORE_ADDR, int, CORE_ADDR); /* Store the address of the place in which to copy the structure the subroutine will return. This is called from call_function_by_hand. @@ -735,8 +729,7 @@ sparc32_push_arguments PARAMS ((int, #define EXTRACT_RETURN_VALUE(TYPE, REGBUF, VALBUF) \ sparc32_extract_return_value (TYPE, REGBUF, VALBUF) -extern void -sparc32_extract_return_value PARAMS ((struct type *, char[], char *)); +extern void sparc32_extract_return_value (struct type *, char[], char *); #endif /* GDB_MULTI_ARCH */ @@ -744,14 +737,14 @@ sparc32_extract_return_value PARAMS ((struct type *, char[], char *)); /* Sparc has no reliable single step ptrace call */ #define SOFTWARE_SINGLE_STEP_P 1 -extern void sparc_software_single_step PARAMS ((unsigned int, int)); +extern void sparc_software_single_step (unsigned int, int); #define SOFTWARE_SINGLE_STEP(sig,bp_p) sparc_software_single_step (sig,bp_p) /* We need more arguments in a frame specification for the "frame" or "info frame" command. */ #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 *); /* To print every pair of float registers as a double, we use this hook. We also print the condition code registers in a readable format @@ -760,7 +753,7 @@ extern struct frame_info *setup_arbitrary_frame PARAMS ((int, CORE_ADDR *)); #undef PRINT_REGISTER_HOOK #define PRINT_REGISTER_HOOK(regno) \ sparc_print_register_hook (regno) -extern void sparc_print_register_hook PARAMS ((int regno)); +extern void sparc_print_register_hook (int regno); /* Optimization for storing registers to the inferior. The hook DO_DEFERRED_STORES diff --git a/gdb/config/sparc/tm-sparclet.h b/gdb/config/sparc/tm-sparclet.h index 3684f74..b2863bf 100644 --- a/gdb/config/sparc/tm-sparclet.h +++ b/gdb/config/sparc/tm-sparclet.h @@ -150,7 +150,6 @@ enum { extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/sparc/tm-spc-em.h b/gdb/config/sparc/tm-spc-em.h index 2391f83..830f89b 100644 --- a/gdb/config/sparc/tm-spc-em.h +++ b/gdb/config/sparc/tm-spc-em.h @@ -41,7 +41,6 @@ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) diff --git a/gdb/config/sparc/tm-sun4os4.h b/gdb/config/sparc/tm-sun4os4.h index 5acc70f..1026d50 100644 --- a/gdb/config/sparc/tm-sun4os4.h +++ b/gdb/config/sparc/tm-sun4os4.h @@ -26,7 +26,7 @@ #undef SKIP_TRAMPOLINE_CODE #define SKIP_TRAMPOLINE_CODE(pc) sunos4_skip_trampoline_code (pc) -extern CORE_ADDR sunos4_skip_trampoline_code PARAMS ((CORE_ADDR)); +extern CORE_ADDR sunos4_skip_trampoline_code (CORE_ADDR); /* Offsets into jmp_buf. Not defined by Sun, but at least documented in a comment in <machine/setjmp.h>! */ @@ -49,11 +49,10 @@ extern CORE_ADDR sunos4_skip_trampoline_code PARAMS ((CORE_ADDR)); extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -extern char *sunpro_static_transform_name PARAMS ((char *)); +extern char *sunpro_static_transform_name (char *); #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x) #define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '$') diff --git a/gdb/config/sparc/tm-sun4sol2.h b/gdb/config/sparc/tm-sun4sol2.h index eb76d1c..6ff45ee 100644 --- a/gdb/config/sparc/tm-sun4sol2.h +++ b/gdb/config/sparc/tm-sun4sol2.h @@ -63,8 +63,7 @@ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) #endif /* 0 */ @@ -73,7 +72,7 @@ get_longjmp_target PARAMS ((CORE_ADDR *)); and for SunPRO 3.0, N_FUN symbols too. */ #define SOFUN_ADDRESS_MAYBE_MISSING -extern char *sunpro_static_transform_name PARAMS ((char *)); +extern char *sunpro_static_transform_name (char *); #define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x) #define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '$') diff --git a/gdb/config/tahoe/tm-tahoe.h b/gdb/config/tahoe/tm-tahoe.h Binary files differindex 5332548..0dc3e0e 100644 --- a/gdb/config/tahoe/tm-tahoe.h +++ b/gdb/config/tahoe/tm-tahoe.h diff --git a/gdb/config/tic80/tm-tic80.h b/gdb/config/tic80/tm-tic80.h index a7accac..3f43cb9 100644 --- a/gdb/config/tic80/tm-tic80.h +++ b/gdb/config/tic80/tm-tic80.h @@ -121,7 +121,7 @@ struct frame_saved_regs; /* Discard from the stack the innermost frame, restoring all registers. */ #define POP_FRAME tic80_pop_frame(get_current_frame ()) -extern struct frame_info *tic80_pop_frame PARAMS ((struct frame_info * frame)); +extern struct frame_info *tic80_pop_frame (struct frame_info *frame); /* Return number of bytes at start of arglist that are not really args. */ @@ -149,7 +149,7 @@ extern struct frame_info *tic80_pop_frame PARAMS ((struct frame_info * frame)); int frameoffset; \ int framereg; -extern void tic80_init_extra_frame_info PARAMS ((struct frame_info * fi)); +extern void tic80_init_extra_frame_info (struct frame_info *fi); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) tic80_init_extra_frame_info (fi) #define INIT_FRAME_PC /* Not necessary */ @@ -161,13 +161,14 @@ extern void tic80_init_extra_frame_info PARAMS ((struct frame_info * fi)); #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \ tic80_frame_find_saved_regs(frame_info, &(frame_saved_regs)) -extern void tic80_frame_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *)); +extern void tic80_frame_find_saved_regs (struct frame_info *, + struct frame_saved_regs *); /* Advance PC across any function entry prologue instructions to reach some "real" code. */ #define SKIP_PROLOGUE(pc) (tic80_skip_prologue (pc)) -extern CORE_ADDR tic80_skip_prologue PARAMS ((CORE_ADDR pc)); +extern CORE_ADDR tic80_skip_prologue (CORE_ADDR pc); /* Immediately after a function call, return the saved pc. Can't always go through the frames for this because on some machines @@ -183,10 +184,10 @@ extern CORE_ADDR tic80_skip_prologue PARAMS ((CORE_ADDR pc)); and produces the frame's chain-pointer. */ #define FRAME_CHAIN(thisframe) (CORE_ADDR) tic80_frame_chain (thisframe) -extern CORE_ADDR tic80_frame_chain PARAMS ((struct frame_info *)); +extern CORE_ADDR tic80_frame_chain (struct frame_info *); #define FRAME_SAVED_PC(FRAME) tic80_frame_saved_pc (FRAME) -extern CORE_ADDR tic80_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR tic80_frame_saved_pc (struct frame_info *); /* Store the address of the place in which to copy the structure the subroutine will return. This is called from call_function. @@ -217,17 +218,17 @@ extern CORE_ADDR tic80_frame_saved_pc PARAMS ((struct frame_info *)); /* PUSH_ARGUMENTS */ -extern CORE_ADDR tic80_push_arguments PARAMS ((int nargs, - struct value ** args, - CORE_ADDR sp, - unsigned char struct_return, - CORE_ADDR struct_addr)); +extern CORE_ADDR tic80_push_arguments (int nargs, + struct value **args, + CORE_ADDR sp, + unsigned char struct_return, + CORE_ADDR struct_addr); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (tic80_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)) /* PUSH_RETURN_ADDRESS */ -extern CORE_ADDR tic80_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR tic80_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) tic80_push_return_address (PC, SP) /* override the standard get_saved_register function with diff --git a/gdb/config/tm-sysv4.h b/gdb/config/tm-sysv4.h index 61f2568..f6fda35 100644 --- a/gdb/config/tm-sysv4.h +++ b/gdb/config/tm-sysv4.h @@ -28,7 +28,7 @@ (e.g. on Irix5). */ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) in_plt_section((pc), (name)) -extern int in_plt_section PARAMS ((CORE_ADDR, char *)); +extern int in_plt_section (CORE_ADDR, char *); /* If PC is in a shared library trampoline code, return the PC where the function itself actually starts. If not, return 0. */ diff --git a/gdb/config/v850/tm-v850.h b/gdb/config/v850/tm-v850.h index 05edaff..405b9ac 100644 --- a/gdb/config/v850/tm-v850.h +++ b/gdb/config/v850/tm-v850.h @@ -99,19 +99,20 @@ struct value; #define EXTRA_FRAME_INFO struct frame_saved_regs fsr; -extern void v850_init_extra_frame_info PARAMS ((struct frame_info * fi)); +extern void v850_init_extra_frame_info (struct frame_info *fi); #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) v850_init_extra_frame_info (fi) #define INIT_FRAME_PC /* Not necessary */ -extern void v850_frame_find_saved_regs PARAMS ((struct frame_info * fi, struct frame_saved_regs * regaddr)); +extern void v850_frame_find_saved_regs (struct frame_info *fi, + struct frame_saved_regs *regaddr); #define FRAME_FIND_SAVED_REGS(fi, regaddr) regaddr = fi->fsr -extern CORE_ADDR v850_frame_chain PARAMS ((struct frame_info * fi)); +extern CORE_ADDR v850_frame_chain (struct frame_info *fi); #define FRAME_CHAIN(fi) v850_frame_chain (fi) #define FRAME_CHAIN_VALID(FP, FI) generic_file_frame_chain_valid (FP, FI) -extern CORE_ADDR v850_find_callers_reg PARAMS ((struct frame_info * fi, int regnum)); -extern CORE_ADDR v850_frame_saved_pc PARAMS ((struct frame_info *)); +extern CORE_ADDR v850_find_callers_reg (struct frame_info *fi, int regnum); +extern CORE_ADDR v850_frame_saved_pc (struct frame_info *); #define FRAME_SAVED_PC(FI) (v850_frame_saved_pc (FI)) #define EXTRACT_RETURN_VALUE(TYPE, REGBUF, VALBUF) \ @@ -124,7 +125,7 @@ extern CORE_ADDR v850_frame_saved_pc PARAMS ((struct frame_info *)); #define STORE_RETURN_VALUE(TYPE, VALBUF) \ write_register_bytes(REGISTER_BYTE (V0_REGNUM), VALBUF, TYPE_LENGTH (TYPE)); -extern CORE_ADDR v850_skip_prologue PARAMS ((CORE_ADDR pc)); +extern CORE_ADDR v850_skip_prologue (CORE_ADDR pc); #define SKIP_PROLOGUE(pc) (v850_skip_prologue (pc)) #define FRAME_ARGS_SKIP 0 @@ -133,7 +134,7 @@ extern CORE_ADDR v850_skip_prologue PARAMS ((CORE_ADDR pc)); #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame) #define FRAME_NUM_ARGS(fi) (-1) -extern void v850_pop_frame PARAMS ((struct frame_info * frame)); +extern void v850_pop_frame (struct frame_info *frame); #define POP_FRAME v850_pop_frame (get_current_frame ()) #define USE_GENERIC_DUMMY_FRAMES 1 @@ -143,16 +144,15 @@ extern void v850_pop_frame PARAMS ((struct frame_info * frame)); #define CALL_DUMMY_LOCATION AT_ENTRY_POINT #define FIX_CALL_DUMMY(DUMMY, START, FUNADDR, NARGS, ARGS, TYPE, GCCP) #define CALL_DUMMY_ADDRESS() entry_point_address () -extern CORE_ADDR v850_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR)); +extern CORE_ADDR v850_push_return_address (CORE_ADDR, CORE_ADDR); #define PUSH_RETURN_ADDRESS(PC, SP) v850_push_return_address (PC, SP) #define PUSH_DUMMY_FRAME generic_push_dummy_frame () extern CORE_ADDR - v850_push_arguments PARAMS ((int nargs, struct value ** args, CORE_ADDR sp, - unsigned char struct_return, - CORE_ADDR struct_addr)); +v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp, + unsigned char struct_return, CORE_ADDR struct_addr); #define PUSH_ARGUMENTS(NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR) \ (v850_push_arguments (NARGS, ARGS, SP, STRUCT_RETURN, STRUCT_ADDR)) diff --git a/gdb/config/vax/tm-vax.h b/gdb/config/vax/tm-vax.h index 607ee74..b1439c2 100644 --- a/gdb/config/vax/tm-vax.h +++ b/gdb/config/vax/tm-vax.h @@ -29,7 +29,7 @@ /* Advance PC across any function entry prologue instructions to reach some "real" code. */ -extern CORE_ADDR vax_skip_prologue PARAMS ((CORE_ADDR)); +extern CORE_ADDR vax_skip_prologue (CORE_ADDR); #define SKIP_PROLOGUE(pc) (vax_skip_prologue (pc)) /* Immediately after a function call, return the saved pc. @@ -214,7 +214,7 @@ extern CORE_ADDR vax_skip_prologue PARAMS ((CORE_ADDR)); /* Return number of args passed to a frame. Can return -1, meaning no way to tell. */ -extern int vax_frame_num_args PARAMS ((struct frame_info * fi)); +extern int vax_frame_num_args (struct frame_info *fi); #define FRAME_NUM_ARGS(fi) (vax_frame_num_args ((fi))) /* Return number of bytes at start of arglist that are not really args. */ diff --git a/gdb/config/w65/tm-w65.h b/gdb/config/w65/tm-w65.h index c8da6bf..b5a5934 100644 --- a/gdb/config/w65/tm-w65.h +++ b/gdb/config/w65/tm-w65.h @@ -190,7 +190,7 @@ extern CORE_ADDR w65_skip_prologue (); typedef unsigned short INSN_WORD; -extern CORE_ADDR w65_addr_bits_remove PARAMS ((CORE_ADDR)); +extern CORE_ADDR w65_addr_bits_remove (CORE_ADDR); #define ADDR_BITS_REMOVE(addr) w65_addr_bits_remove (addr) #define CALL_DUMMY_LENGTH 10 diff --git a/gdb/config/xm-aix4.h b/gdb/config/xm-aix4.h index 14d6244..d1d4cdc 100644 --- a/gdb/config/xm-aix4.h +++ b/gdb/config/xm-aix4.h @@ -73,7 +73,7 @@ char *termdef (); /* Signal handler for SIGWINCH `window size changed'. */ #define SIGWINCH_HANDLER aix_resizewindow -extern void aix_resizewindow PARAMS ((int)); +extern void aix_resizewindow (int); /* `lines_per_page' and `chars_per_line' are local to utils.c. Rectify this. */ diff --git a/gdb/config/z8k/tm-z8k.h b/gdb/config/z8k/tm-z8k.h index 9cc12ec..544dea5 100644 --- a/gdb/config/z8k/tm-z8k.h +++ b/gdb/config/z8k/tm-z8k.h @@ -42,7 +42,7 @@ to reach some "real" code. */ #define SKIP_PROLOGUE(ip) (z8k_skip_prologue (ip)) -extern CORE_ADDR z8k_skip_prologue PARAMS ((CORE_ADDR ip)); +extern CORE_ADDR z8k_skip_prologue (CORE_ADDR ip); /* Immediately after a function call, return the saved pc. @@ -203,7 +203,7 @@ extern CORE_ADDR z8k_frame_saved_pc (struct frame_info *frame); #define FRAME_ARGS_SKIP 8 struct frame_info; -extern void z8k_frame_init_saved_regs PARAMS ((struct frame_info *)); +extern void z8k_frame_init_saved_regs (struct frame_info *); #define FRAME_INIT_SAVED_REGS(fi) z8k_frame_init_saved_regs (fi) @@ -259,9 +259,9 @@ extern void z8k_frame_init_saved_regs PARAMS ((struct frame_info *)); #define PUSH_DUMMY_FRAME { z8k_push_dummy_frame (); } -extern void z8k_push_dummy_frame PARAMS ((void)); +extern void z8k_push_dummy_frame (void); -extern void z8k_pop_frame PARAMS ((void)); +extern void z8k_pop_frame (void); /* Discard from the stack the innermost frame, restoring all registers. */ @@ -271,7 +271,7 @@ extern void z8k_pop_frame PARAMS ((void)); #define SP_ARG0 (1 * 4) -extern CORE_ADDR z8k_addr_bits_remove PARAMS ((CORE_ADDR)); +extern CORE_ADDR z8k_addr_bits_remove (CORE_ADDR); #define ADDR_BITS_REMOVE(addr) z8k_addr_bits_remove (addr) int sim_z8001_mode; #define BIG (sim_z8001_mode) |