summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog15
-rw-r--r--gdb/annotate.c10
-rw-r--r--gdb/annotate.h10
-rw-r--r--gdb/breakpoint.c2
-rw-r--r--gdb/command.c8
-rw-r--r--gdb/command.h7
-rw-r--r--gdb/config/rs6000/tm-rs6000.h2
-rw-r--r--gdb/corefile.c4
-rw-r--r--gdb/d10v-tdep.c4
-rw-r--r--gdb/d30v-tdep.c4
-rw-r--r--gdb/dbxread.c6
-rw-r--r--gdb/dcache.c2
-rw-r--r--gdb/dcache.h4
-rw-r--r--gdb/dsrec.c2
-rw-r--r--gdb/dve3900-rom.c8
-rw-r--r--gdb/exec.c4
-rw-r--r--gdb/fork-child.c6
-rw-r--r--gdb/gdbcore.h14
-rw-r--r--gdb/hpux-thread.c2
-rw-r--r--gdb/language.h10
-rw-r--r--gdb/linux-thread.c2
-rw-r--r--gdb/mdebugread.c19
-rw-r--r--gdb/monitor.h11
-rw-r--r--gdb/ocd.c2
-rw-r--r--gdb/procfs.c4
-rw-r--r--gdb/ptx4-nat.c2
-rw-r--r--gdb/remote-sim.c2
-rw-r--r--gdb/remote-utils.h4
-rw-r--r--gdb/remote.c11
-rw-r--r--gdb/rs6000-tdep.c2
-rw-r--r--gdb/ser-ocd.c2
-rw-r--r--gdb/sol-thread.c2
-rw-r--r--gdb/sparcl-tdep.c6
-rw-r--r--gdb/stabsread.h2
-rw-r--r--gdb/stack.c2
-rw-r--r--gdb/symfile.c9
-rw-r--r--gdb/symfile.h10
-rw-r--r--gdb/symtab.h2
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/target.h131
-rw-r--r--gdb/top.c54
-rw-r--r--gdb/tracepoint.c6
-rw-r--r--gdb/tracepoint.h10
-rw-r--r--gdb/tui/tui.h8
-rw-r--r--gdb/tui/tuiIO.c2
-rw-r--r--gdb/utils.c10
-rw-r--r--gdb/v850ice.c4
-rw-r--r--gdb/varobj.c16
-rw-r--r--gdb/win32-nat.c2
-rw-r--r--gdb/wince.c2
-rw-r--r--gdb/xcoffsolib.c2
-rw-r--r--gdb/xcoffsolib.h2
52 files changed, 237 insertions, 232 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 85cbd2a576c..b9d9059ac46 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,18 @@
+2000-06-03 Kevin Buettner <kevinb@redhat.com>
+
+ * annotate.c, annotate.h, breakpoint.c, command.c, command.h,
+ config/rs6000/tm-rs6000.h, corefile.c, d10v-tdep.c,
+ d30v-tdep.c, dbxread.c, dcache.c, dcache.h, dsrec.c,
+ dve3900-rom.c, exec.c, fork-child.c, gdbcore.h, hpux-thread.c,
+ language.h, linux-thread.c, mdebugread.c, monitor.h, ocd.c,
+ procfs.c, ptx4-nat.c, remote-sim.c, remote-utils.h, remote.c,
+ rs6000-tdep.c, ser-ocd.c, sol-thread.c, sparcl-tdep.c,
+ stabsread.h, stack.c, symfile.c, symfile.h, symtab.h,
+ target.c, target.h, top.c, tracepoint.c, tracepoint.h,
+ tui/tui.h, tui/tuiIO.c, utils.c, v850ice.c, varobj.c,
+ win32-nat.c, wince.c, xcoffsolib.c, xcoffsolib.h: Eliminate
+ PARAMS from function pointer declarations.
+
2000-06-03 Christopher Faylor <cgf@cygnus.com>
* win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 079a86b7199..ee26290a95e 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -34,11 +34,11 @@ static void print_value_flags (struct type *);
static void breakpoint_changed (struct breakpoint *);
-void (*annotate_starting_hook) PARAMS ((void));
-void (*annotate_stopped_hook) PARAMS ((void));
-void (*annotate_signalled_hook) PARAMS ((void));
-void (*annotate_signal_hook) PARAMS ((void));
-void (*annotate_exited_hook) PARAMS ((void));
+void (*annotate_starting_hook) (void);
+void (*annotate_stopped_hook) (void);
+void (*annotate_signalled_hook) (void);
+void (*annotate_signal_hook) (void);
+void (*annotate_exited_hook) (void);
static int ignore_count_changed = 0;
diff --git a/gdb/annotate.h b/gdb/annotate.h
index fda8b1749d5..3e4711235bc 100644
--- a/gdb/annotate.h
+++ b/gdb/annotate.h
@@ -98,8 +98,8 @@ extern void annotate_elt_rep_end (void);
extern void annotate_elt (void);
extern void annotate_array_section_end (void);
-extern void (*annotate_starting_hook) PARAMS ((void));
-extern void (*annotate_stopped_hook) PARAMS ((void));
-extern void (*annotate_signalled_hook) PARAMS ((void));
-extern void (*annotate_signal_hook) PARAMS ((void));
-extern void (*annotate_exited_hook) PARAMS ((void));
+extern void (*annotate_starting_hook) (void);
+extern void (*annotate_stopped_hook) (void);
+extern void (*annotate_signalled_hook) (void);
+extern void (*annotate_signal_hook) (void);
+extern void (*annotate_exited_hook) (void);
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index d7aeae3f5bd..c80c4531b2e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -7396,7 +7396,7 @@ ignore_command (args, from_tty)
static void
map_breakpoint_numbers (args, function)
char *args;
- void (*function) PARAMS ((struct breakpoint *));
+ void (*function) (struct breakpoint *);
{
register char *p = args;
char *p1;
diff --git a/gdb/command.c b/gdb/command.c
index 9f0e47691f7..02ee4745a8c 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -84,7 +84,7 @@ struct cmd_list_element *
add_cmd (name, class, fun, doc, list)
char *name;
enum command_class class;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
struct cmd_list_element **list;
{
@@ -168,7 +168,7 @@ struct cmd_list_element *
add_abbrev_cmd (name, class, fun, doc, list)
char *name;
enum command_class class;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
struct cmd_list_element **list;
{
@@ -222,7 +222,7 @@ add_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
allow_unknown, list)
char *name;
enum command_class class;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
struct cmd_list_element **prefixlist;
char *prefixname;
@@ -243,7 +243,7 @@ add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
allow_unknown, list)
char *name;
enum command_class class;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
struct cmd_list_element **prefixlist;
char *prefixname;
diff --git a/gdb/command.h b/gdb/command.h
index 9628323f3b4..f6c46e96080 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -108,12 +108,11 @@ struct cmd_list_element
union
{
/* If type is not_set_cmd, call it like this: */
- void (*cfunc) PARAMS ((char *args, int from_tty));
+ void (*cfunc) (char *args, int from_tty);
/* If type is cmd_set or show_cmd, first set the variables, and
then call this. */
- void (*sfunc) PARAMS ((char *args, int from_tty,
- struct cmd_list_element * c));
+ void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
}
function;
#define NO_FUNCTION ((void (*) PARAMS((char *args, int from_tty))) 0)
@@ -186,7 +185,7 @@ struct cmd_list_element
returned relative to this position. For example, suppose TEXT is "foo"
and we want to complete to "foobar". If WORD is "oo", return
"oobar"; if WORD is "baz/foo", return "baz/foobar". */
- char **(*completer) PARAMS ((char *text, char *word));
+ char **(*completer) (char *text, char *word);
/* Type of "set" or "show" command (or SET_NOT_SET if not "set"
or "show"). */
diff --git a/gdb/config/rs6000/tm-rs6000.h b/gdb/config/rs6000/tm-rs6000.h
index 36866b32118..5bba7782116 100644
--- a/gdb/config/rs6000/tm-rs6000.h
+++ b/gdb/config/rs6000/tm-rs6000.h
@@ -512,7 +512,7 @@ extern void rs6000_fix_call_dummy (char *, CORE_ADDR, CORE_ADDR,
/* Hook in rs6000-tdep.c for determining the TOC address when
calling functions in the inferior. */
extern
-CORE_ADDR (*find_toc_address_hook) PARAMS ((CORE_ADDR));
+CORE_ADDR (*find_toc_address_hook) (CORE_ADDR);
/* xcoffread.c provides a function to determine the TOC offset
for a given object file.
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 97c3cfe3802..c8772de4c0a 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -51,7 +51,7 @@ static void call_extra_exec_file_hooks (char *filename);
old code that assumed that only one hook could be set, and which called
exec_file_display_hook directly. */
-typedef void (*hook_type) PARAMS ((char *));
+typedef void (*hook_type) (char *);
hook_type exec_file_display_hook; /* the original hook */
static hook_type *exec_file_extra_hooks; /* array of additional hooks */
@@ -124,7 +124,7 @@ call_extra_exec_file_hooks (filename)
void
specify_exec_file_hook (hook)
- void (*hook) PARAMS ((char *));
+ void (*hook) (char *);
{
hook_type *new_array;
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index 094741eba7c..3aab494e846 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -1682,8 +1682,8 @@ d10v_gdbarch_init (info, arches)
}
-extern void (*target_resume_hook) PARAMS ((void));
-extern void (*target_wait_loop_hook) PARAMS ((void));
+extern void (*target_resume_hook) (void);
+extern void (*target_wait_loop_hook) (void);
void
_initialize_d10v_tdep ()
diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c
index 10a2404997c..cea03508daf 100644
--- a/gdb/d30v-tdep.c
+++ b/gdb/d30v-tdep.c
@@ -1365,8 +1365,8 @@ display_trace (low, high)
}
}
-extern void (*target_resume_hook) PARAMS ((void));
-extern void (*target_wait_loop_hook) PARAMS ((void));
+extern void (*target_resume_hook) (void);
+extern void (*target_wait_loop_hook) (void);
void
_initialize_d30v_tdep ()
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 325152505b2..10e153544ea 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -809,7 +809,7 @@ struct cont_elem
int sym_idx;
int sym_end;
int symnum;
- int (*func) PARAMS ((struct objfile *, struct symbol *, char *));
+ int (*func) (struct objfile *, struct symbol *, char *);
/* other state dependancies include:
(assumption is that these will not change since process_now FIXME!!)
stringtab_global
@@ -828,7 +828,7 @@ void
process_later (sym, p, f)
struct symbol *sym;
char *p;
- int (*f) PARAMS ((struct objfile *, struct symbol *, char *));
+ int (*f) (struct objfile *, struct symbol *, char *);
{
/* Allocate more space for the deferred list. */
@@ -867,7 +867,7 @@ process_now (objfile)
struct symbol *sym;
char *stabs;
int err;
- int (*func) PARAMS ((struct objfile *, struct symbol *, char *));
+ int (*func) (struct objfile *, struct symbol *, char *);
/* Save the state of our caller, we'll want to restore it before
returning. */
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 8fd6a8f9583..538f77e06a1 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -478,7 +478,7 @@ dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write)
if (dcache_enabled_p)
{
- int (*xfunc) PARAMS ((DCACHE * dcache, CORE_ADDR addr, char *ptr));
+ int (*xfunc) (DCACHE * dcache, CORE_ADDR addr, char *ptr);
xfunc = should_write ? dcache_poke_byte : dcache_peek_byte;
for (i = 0; i < len; i++)
diff --git a/gdb/dcache.h b/gdb/dcache.h
index ef9465ac41f..d13708f2b2e 100644
--- a/gdb/dcache.h
+++ b/gdb/dcache.h
@@ -23,9 +23,7 @@
#ifndef DCACHE_H
#define DCACHE_H
-typedef int (*memxferfunc) PARAMS ((CORE_ADDR memaddr,
- char *myaddr,
- int len));
+typedef int (*memxferfunc) (CORE_ADDR memaddr, char *myaddr, int len);
typedef struct dcache_struct DCACHE;
diff --git a/gdb/dsrec.c b/gdb/dsrec.c
index e9d89f6d1bd..31b8fc277df 100644
--- a/gdb/dsrec.c
+++ b/gdb/dsrec.c
@@ -51,7 +51,7 @@ load_srec (desc, file, load_offset, maxrecsize, flags, hashmark, waitack)
int maxrecsize;
int flags;
int hashmark;
- int (*waitack) PARAMS ((void));
+ int (*waitack) (void);
{
bfd *abfd;
asection *s;
diff --git a/gdb/dve3900-rom.c b/gdb/dve3900-rom.c
index bdbb03d1b5f..4cd035fbf34 100644
--- a/gdb/dve3900-rom.c
+++ b/gdb/dve3900-rom.c
@@ -31,7 +31,7 @@
/* Type of function passed to bfd_map_over_sections. */
-typedef void (*section_map_func) PARAMS ((bfd * abfd, asection * sect, PTR obj));
+typedef void (*section_map_func) (bfd * abfd, asection * sect, PTR obj);
/* Packet escape character used by Densan monitor. */
@@ -95,13 +95,13 @@ static void r3900_open (char *args, int from_tty);
format, and those that can't be modified at all. In those cases
we have to use our own functions to fetch and store their values. */
-static void (*orig_monitor_fetch_registers) PARAMS ((int regno));
-static void (*orig_monitor_store_registers) PARAMS ((int regno));
+static void (*orig_monitor_fetch_registers) (int regno);
+static void (*orig_monitor_store_registers) (int regno);
/* Pointer to static function in monitor. for loading programs.
We use this function for loading S-records via the serial link. */
-static void (*orig_monitor_load) PARAMS ((char *file, int from_tty));
+static void (*orig_monitor_load) (char *file, int from_tty);
/* This flag is set if a fast ethernet download should be used. */
diff --git a/gdb/exec.c b/gdb/exec.c
index 0620dd30b2f..76d49286647 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -47,7 +47,7 @@
struct vmap *map_vmap (bfd *, bfd *);
-void (*file_changed_hook) PARAMS ((char *));
+void (*file_changed_hook) (char *);
/* Prototypes for local functions */
@@ -473,7 +473,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
boolean res;
struct section_table *p;
CORE_ADDR nextsectaddr, memend;
- boolean (*xfer_fn) PARAMS ((bfd *, sec_ptr, PTR, file_ptr, bfd_size_type));
+ boolean (*xfer_fn) (bfd *, sec_ptr, PTR, file_ptr, bfd_size_type);
asection *section;
if (len <= 0)
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 1acb28ad422..0996fbd4590 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -103,9 +103,9 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
char *exec_file;
char *allargs;
char **env;
- void (*traceme_fun) PARAMS ((void));
- void (*init_trace_fun) PARAMS ((int));
- void (*pre_trace_fun) PARAMS ((void));
+ void (*traceme_fun) (void);
+ void (*init_trace_fun) (int);
+ void (*pre_trace_fun) (void);
char *shell_file;
{
int pid;
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index bb4e76f6453..bdf14c264a8 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -78,12 +78,12 @@ extern void generic_search (int len, char *data, char *mask,
/* Hook for `exec_file_command' command to call. */
-extern void (*exec_file_display_hook) PARAMS ((char *filename));
+extern void (*exec_file_display_hook) (char *filename);
/* Hook for "file_command", which is more useful than above
(because it is invoked AFTER symbols are read, not before) */
-extern void (*file_changed_hook) PARAMS ((char *filename));
+extern void (*file_changed_hook) (char *filename);
extern void specify_exec_file_hook (void (*hook) (char *filename));
@@ -143,13 +143,13 @@ struct core_fns
another file). Returns nonzero if the handler recognizes the
format, zero otherwise. */
- int (*check_format) PARAMS ((bfd *));
+ int (*check_format) (bfd *);
/* Core file handler function to call to ask if it can handle a
given core file format or not. Returns zero if it can't,
nonzero otherwise. */
- int (*core_sniffer) PARAMS ((struct core_fns *, bfd *));
+ int (*core_sniffer) (struct core_fns *, bfd *);
/* Extract the register values out of the core file and store them where
`read_register' will find them.
@@ -172,9 +172,9 @@ struct core_fns
registers in a large upage-plus-stack ".reg" section. Original upage
address X is at location core_reg_sect+x+reg_addr. */
- void (*core_read_registers) PARAMS ((char *core_reg_sect,
- unsigned core_reg_size,
- int which, CORE_ADDR reg_addr));
+ void (*core_read_registers) (char *core_reg_sect,
+ unsigned core_reg_size,
+ int which, CORE_ADDR reg_addr);
/* Finds the next struct core_fns. They are allocated and initialized
in whatever module implements the functions pointed to; an
diff --git a/gdb/hpux-thread.c b/gdb/hpux-thread.c
index 9bd612923e0..f27d12b72f2 100644
--- a/gdb/hpux-thread.c
+++ b/gdb/hpux-thread.c
@@ -524,7 +524,7 @@ hpux_thread_create_inferior (exec_file, allargs, env)
*/
/* Saved pointer to previous owner of the new_objfile event. */
-static void (*target_new_objfile_chain) PARAMS ((struct objfile *));
+static void (*target_new_objfile_chain) (struct objfile *);
void
hpux_thread_new_objfile (objfile)
diff --git a/gdb/language.h b/gdb/language.h
index 054c6cfba7d..185bc919ea0 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -141,15 +141,15 @@ struct language_defn
/* Parser function. */
- int (*la_parser) PARAMS ((void));
+ int (*la_parser) (void);
/* Parser error function */
- void (*la_error) PARAMS ((char *));
+ void (*la_error) (char *);
/* Evaluate an expression. */
- struct value *(*evaluate_exp) PARAMS ((struct type *, struct expression *,
- int *, enum noside));
+ struct value *(*evaluate_exp) (struct type *, struct expression *,
+ int *, enum noside);
void (*la_printchar) (int ch, struct ui_file * stream);
@@ -159,7 +159,7 @@ struct language_defn
void (*la_emitchar) (int ch, struct ui_file * stream, int quoter);
- struct type *(*la_fund_type) PARAMS ((struct objfile *, int));
+ struct type *(*la_fund_type) (struct objfile *, int);
/* Print a type using syntax appropriate for this language. */
diff --git a/gdb/linux-thread.c b/gdb/linux-thread.c
index 146481c6ac8..f25c763f13b 100644
--- a/gdb/linux-thread.c
+++ b/gdb/linux-thread.c
@@ -902,7 +902,7 @@ update_stop_threads (test_pid)
*/
/* Saved pointer to previous owner of the new_objfile event. */
-static void (*target_new_objfile_chain) PARAMS ((struct objfile *));
+static void (*target_new_objfile_chain) (struct objfile *);
void
linuxthreads_new_objfile (objfile)
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index f17dc93baf5..e377435d491 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -699,8 +699,7 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets, objfile)
struct objfile *objfile;
{
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
- void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *)) =
- debug_swap->swap_sym_in;
+ void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
char *name;
struct symbol *s;
struct block *b;
@@ -2254,12 +2253,9 @@ parse_partial_symbols (objfile)
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
const bfd_size_type external_rfd_size = debug_swap->external_rfd_size;
const bfd_size_type external_ext_size = debug_swap->external_ext_size;
- void (*const swap_ext_in) PARAMS ((bfd *, PTR, EXTR *))
- = debug_swap->swap_ext_in;
- void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *))
- = debug_swap->swap_sym_in;
- void (*const swap_rfd_in) PARAMS ((bfd *, PTR, RFDT *))
- = debug_swap->swap_rfd_in;
+ void (*const swap_ext_in) (bfd *, PTR, EXTR *) = debug_swap->swap_ext_in;
+ void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
+ void (*const swap_rfd_in) (bfd *, PTR, RFDT *) = debug_swap->swap_rfd_in;
int f_idx, s_idx;
HDRR *hdr = &debug_info->symbolic_header;
/* Running pointers */
@@ -3167,8 +3163,7 @@ handle_psymbol_enumerators (objfile, fh, stype, svalue)
CORE_ADDR svalue;
{
const bfd_size_type external_sym_size = debug_swap->external_sym_size;
- void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *))
- = debug_swap->swap_sym_in;
+ void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
char *ext_sym = ((char *) debug_info->external_sym
+ ((fh->isymBase + cur_sdx + 1) * external_sym_size));
SYMR sh;
@@ -3260,8 +3255,8 @@ psymtab_to_symtab_1 (pst, filename)
{
bfd_size_type external_sym_size;
bfd_size_type external_pdr_size;
- void (*swap_sym_in) PARAMS ((bfd *, PTR, SYMR *));
- void (*swap_pdr_in) PARAMS ((bfd *, PTR, PDR *));
+ void (*swap_sym_in) (bfd *, PTR, SYMR *);
+ void (*swap_pdr_in) (bfd *, PTR, PDR *);
int i;
struct symtab *st;
FDR *fh;
diff --git a/gdb/monitor.h b/gdb/monitor.h
index ba44133d472..23fad577e4f 100644
--- a/gdb/monitor.h
+++ b/gdb/monitor.h
@@ -95,16 +95,15 @@ struct monitor_ops
GDB with the value of a register. */
char *dump_registers; /* Command to dump all regs at once */
char *register_pattern; /* Pattern that picks out register from reg dump */
- void (*supply_register) PARAMS ((char *name, int namelen,
- char *val, int vallen));
+ void (*supply_register) (char *name, int namelen, char *val, int vallen);
void (*load_routine) PARAMS ((serial_t desc, char *file,
int hashmark)); /* Download routine */
int (*dumpregs) PARAMS ((void)); /* routine to dump all registers */
int (*continue_hook) PARAMS ((void)); /* Emit the continue command */
- int (*wait_filter) PARAMS ((char *buf, /* Maybe contains registers */
- int bufmax,
- int *response_length,
- struct target_waitstatus * status));
+ int (*wait_filter) (char *buf, /* Maybe contains registers */
+ int bufmax,
+ int *response_length,
+ struct target_waitstatus * status);
char *load; /* load command */
char *loadresp; /* Response to load command */
char *prompt; /* monitor command prompt */
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 033d7d24259..1eeed77ed2e 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -1409,7 +1409,7 @@ bdm_update_flash_command (args, from_tty)
{
int status, pktlen;
struct cleanup *old_chain;
- void (*store_registers_tmp) PARAMS ((int));
+ void (*store_registers_tmp) (int);
if (!ocd_desc)
error ("Not connected to OCD device.");
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 2e4daed4c44..71e41b70764 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -2598,7 +2598,7 @@ proc_set_watchpoint (pi, addr, len, wflags)
every time, I don't need to lseek it. */
int
proc_iterate_over_mappings (func)
- int (*func) PARAMS ((int, CORE_ADDR));
+ int (*func) (int, CORE_ADDR);
{
struct prmap *map;
procinfo *pi;
@@ -3140,7 +3140,7 @@ proc_update_threads (pi)
int
proc_iterate_over_threads (pi, func, ptr)
procinfo *pi;
- int (*func) PARAMS ((procinfo *, procinfo *, void *));
+ int (*func) (procinfo *, procinfo *, void *);
void *ptr;
{
procinfo *thread, *next;
diff --git a/gdb/ptx4-nat.c b/gdb/ptx4-nat.c
index 2ff79953eb2..d1a5248a87e 100644
--- a/gdb/ptx4-nat.c
+++ b/gdb/ptx4-nat.c
@@ -101,7 +101,7 @@ fill_fpregset (fpregsetp, regno)
/* this could use elf_interpreter() from elfread.c */
int
proc_iterate_over_mappings (func)
- int (*func) PARAMS ((int, CORE_ADDR));
+ int (*func) (int, CORE_ADDR);
{
vaddr_t curseg, memptr;
pt_vseg_t pv;
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 11f17dd212a..3377fef450f 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -42,7 +42,7 @@
extern void _initialize_remote_sim (void);
-extern int (*ui_loop_hook) PARAMS ((int signo));
+extern int (*ui_loop_hook) (int signo);
static void dump_mem (char *buf, int len);
diff --git a/gdb/remote-utils.h b/gdb/remote-utils.h
index 0bd0e0dcea3..d82ea8d2e9b 100644
--- a/gdb/remote-utils.h
+++ b/gdb/remote-utils.h
@@ -77,10 +77,10 @@ struct gr_settings
DCACHE *dcache;
char *prompt;
struct target_ops *ops;
- int (*clear_all_breakpoints) PARAMS ((void));
+ int (*clear_all_breakpoints) (void);
memxferfunc readfunc;
memxferfunc writefunc;
- void (*checkin) PARAMS ((void));
+ void (*checkin) (void);
};
extern struct gr_settings *gr_settings;
diff --git a/gdb/remote.c b/gdb/remote.c
index c40f7afcd1d..fbe959a24b8 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -603,9 +603,8 @@ add_packet_config_cmd (config, name, title, set_func, show_func,
struct packet_config *config;
char *name;
char *title;
- void (*set_func) PARAMS ((char *args, int from_tty,
- struct cmd_list_element * c));
- void (*show_func) PARAMS ((char *name, int from_tty));
+ void (*set_func) (char *args, int from_tty, struct cmd_list_element * c);
+ void (*show_func) (char *name, int from_tty);
struct cmd_list_element **setlist;
struct cmd_list_element **showlist;
{
@@ -731,8 +730,8 @@ PTR sigint_remote_token;
/* These are pointers to hook functions that may be set in order to
modify resume/wait behavior for a particular architecture. */
-void (*target_resume_hook) PARAMS ((void));
-void (*target_wait_loop_hook) PARAMS ((void));
+void (*target_resume_hook) (void);
+void (*target_wait_loop_hook) (void);
@@ -2445,7 +2444,7 @@ cleanup_sigint_signal_handler (void *dummy)
/* Send ^C to target to halt it. Target will respond, and send us a
packet. */
-static void (*ofunc) PARAMS ((int));
+static void (*ofunc) (int);
/* The command line interface's stop routine. This function is installed
as a signal handler for SIGINT. The first time a user requests a
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index e68da47cebb..eeadae5296b 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -47,7 +47,7 @@ stepBreaks[2];
inferior under AIX. The initialization code in rs6000-nat.c sets
this hook to point to find_toc_address. */
-CORE_ADDR (*find_toc_address_hook) PARAMS ((CORE_ADDR)) = NULL;
+CORE_ADDR (*find_toc_address_hook) (CORE_ADDR) = NULL;
/* Static function prototypes */
diff --git a/gdb/ser-ocd.c b/gdb/ser-ocd.c
index 733d69217c1..c5c71035af1 100644
--- a/gdb/ser-ocd.c
+++ b/gdb/ser-ocd.c
@@ -30,7 +30,7 @@
#ifdef _WIN32
/* On Windows, this function pointer is initialized to a function in
the wiggler DLL. */
-static int (*dll_do_command) PARAMS ((const char *, char *));
+static int (*dll_do_command) (const char *, char *);
#endif
static int
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 0dcbb3cbfc6..563dbd07fad 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -857,7 +857,7 @@ sol_thread_create_inferior (exec_file, allargs, env)
*/
/* Saved pointer to previous owner of the new_objfile event. */
-static void (*target_new_objfile_chain) PARAMS ((struct objfile *));
+static void (*target_new_objfile_chain) (struct objfile *);
void
sol_thread_new_objfile (objfile)
diff --git a/gdb/sparcl-tdep.c b/gdb/sparcl-tdep.c
index ecf0bf12d89..2e9e2950077 100644
--- a/gdb/sparcl-tdep.c
+++ b/gdb/sparcl-tdep.c
@@ -560,9 +560,9 @@ download (target_name, args, from_tty, write_routine, start_routine)
char *target_name;
char *args;
int from_tty;
- void (*write_routine) PARAMS ((bfd * from_bfd, asection * from_sec,
- file_ptr from_addr, bfd_vma to_addr, int len));
- void (*start_routine) PARAMS ((bfd_vma entry));
+ void (*write_routine) (bfd * from_bfd, asection * from_sec,
+ file_ptr from_addr, bfd_vma to_addr, int len);
+ void (*start_routine) (bfd_vma entry);
{
struct cleanup *old_chain;
asection *section;
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index c899f5078d3..6ae3d8bd4fe 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -213,7 +213,7 @@ extern void elfstab_offset_sections (struct objfile *,
extern void process_later
(struct symbol *, char *,
- int (*f) PARAMS ((struct objfile *, struct symbol *, char *)));
+ int (*f) (struct objfile *, struct symbol *, char *));
extern int symbol_reference_defined (char **);
diff --git a/gdb/stack.c b/gdb/stack.c
index 6c11a98f235..acd16b4094d 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -46,7 +46,7 @@ void args_info (char *, int);
void locals_info (char *, int);
-void (*selected_frame_level_changed_hook) PARAMS ((int));
+void (*selected_frame_level_changed_hook) (int);
void _initialize_stack (void);
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 60b408b672d..726bd245310 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -68,9 +68,9 @@ void (*show_load_progress) (const char *section,
unsigned long section_size,
unsigned long total_sent,
unsigned long total_size);
-void (*pre_add_symbol_hook) PARAMS ((char *));
-void (*post_add_symbol_hook) PARAMS ((void));
-void (*target_new_objfile_hook) PARAMS ((struct objfile *));
+void (*pre_add_symbol_hook) (char *);
+void (*post_add_symbol_hook) (void);
+void (*target_new_objfile_hook) (struct objfile *);
static void clear_symtab_users_cleanup (void *ignore);
@@ -2554,8 +2554,7 @@ int overlay_cache_invalid = 0; /* True if need to refresh mapped state */
/* Target vector for refreshing overlay mapped state */
static void simple_overlay_update (struct obj_section *);
-void (*target_overlay_update) PARAMS ((struct obj_section *))
-= simple_overlay_update;
+void (*target_overlay_update) (struct obj_section *) = simple_overlay_update;
/* Function: section_is_overlay (SECTION)
Returns true if SECTION has VMA not equal to LMA, ie.
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 177085b13d5..56cf4653850 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -88,13 +88,13 @@ struct sym_fns
called during symbol_file_add, when we begin debugging an entirely new
program. */
- void (*sym_new_init) PARAMS ((struct objfile *));
+ void (*sym_new_init) (struct objfile *);
/* Reads any initial information from a symbol file, and initializes the
struct sym_fns SF in preparation for sym_read(). It is called every
time we read a symbol file for any reason. */
- void (*sym_init) PARAMS ((struct objfile *));
+ void (*sym_init) (struct objfile *);
/* sym_read (objfile, mainline)
Reads a symbol file into a psymtab (or possibly a symtab).
@@ -104,12 +104,12 @@ struct sym_fns
symbol file (e.g. shared library or dynamically loaded file)
is being read. */
- void (*sym_read) PARAMS ((struct objfile *, int));
+ void (*sym_read) (struct objfile *, int);
/* Called when we are finished with an objfile. Should do all cleanup
that is specific to the object file format for the particular objfile. */
- void (*sym_finish) PARAMS ((struct objfile *));
+ void (*sym_finish) (struct objfile *);
/* This function produces a file-dependent section_offsets structure,
allocated in the objfile's storage, and based on the parameter.
@@ -118,7 +118,7 @@ struct sym_fns
a string, where NULL means the default, and others are parsed in a file
dependent way. */
- void (*sym_offsets) PARAMS ((struct objfile *, struct section_addr_info *));
+ void (*sym_offsets) (struct objfile *, struct section_addr_info *);
/* Finds the next struct sym_fns. They are allocated and initialized
in whatever module implements the functions pointed to; an
diff --git a/gdb/symtab.h b/gdb/symtab.h
index d846f3edfca..5fe5bc3d17c 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1011,7 +1011,7 @@ struct partial_symtab
/* Pointer to function which will read in the symtab corresponding to
this psymtab. */
- void (*read_symtab) PARAMS ((struct partial_symtab *));
+ void (*read_symtab) (struct partial_symtab *);
/* Information that lets read_symtab() locate the part of the symbol table
that this psymtab corresponds to. This information is private to the
diff --git a/gdb/target.c b/gdb/target.c
index e1021d8dd7c..b99055dd513 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -2126,7 +2126,7 @@ Use \"info signals\" for a list of symbolic signals.");
}
/* Returns zero to leave the inferior alone, one to interrupt it. */
-int (*target_activity_function) PARAMS ((void));
+int (*target_activity_function) (void);
int target_activity_fd;
/* Convert a normal process ID to a string. Returns the string in a static
diff --git a/gdb/target.h b/gdb/target.h
index bfb48fa710a..5c651496f74 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -316,7 +316,7 @@ enum target_signal target_signal_from_name (char *);
on TARGET_ACTIVITY_FD. */
extern int target_activity_fd;
/* Returns zero to leave the inferior alone, one to interrupt it. */
-extern int (*target_activity_function) PARAMS ((void));
+extern int (*target_activity_function) (void);
struct thread_info; /* fwd decl for parameter list below: */
@@ -327,19 +327,19 @@ struct target_ops
char *to_doc; /* Documentation. Does not include trailing
newline, and starts with a one-line descrip-
tion (probably similar to to_longname). */
- void (*to_open) PARAMS ((char *, int));
- void (*to_close) PARAMS ((int));
- void (*to_attach) PARAMS ((char *, int));
- void (*to_post_attach) PARAMS ((int));
- void (*to_require_attach) PARAMS ((char *, int));
- void (*to_detach) PARAMS ((char *, int));
- void (*to_require_detach) PARAMS ((int, char *, int));
- void (*to_resume) PARAMS ((int, int, enum target_signal));
- int (*to_wait) PARAMS ((int, struct target_waitstatus *));
- void (*to_post_wait) PARAMS ((int, int));
- void (*to_fetch_registers) PARAMS ((int));
- void (*to_store_registers) PARAMS ((int));
- void (*to_prepare_to_store) PARAMS ((void));
+ void (*to_open) (char *, int);
+ void (*to_close) (int);
+ void (*to_attach) (char *, int);
+ void (*to_post_attach) (int);
+ void (*to_require_attach) (char *, int);
+ void (*to_detach) (char *, int);
+ void (*to_require_detach) (int, char *, int);
+ void (*to_resume) (int, int, enum target_signal);
+ int (*to_wait) (int, struct target_waitstatus *);
+ void (*to_post_wait) (int, int);
+ void (*to_fetch_registers) (int);
+ void (*to_store_registers) (int);
+ void (*to_prepare_to_store) (void);
/* Transfer LEN bytes of memory between GDB address MYADDR and
target address MEMADDR. If WRITE, transfer them to the target, else
@@ -359,9 +359,8 @@ struct target_ops
transfer right at MEMADDR, but we could transfer at least
something at MEMADDR + N. */
- int (*to_xfer_memory) PARAMS ((CORE_ADDR memaddr, char *myaddr,
- int len, int write,
- struct target_ops * target));
+ int (*to_xfer_memory) (CORE_ADDR memaddr, char *myaddr,
+ int len, int write, struct target_ops * target);
#if 0
/* Enable this after 4.12. */
@@ -376,60 +375,62 @@ struct target_ops
If we don't find anything, set *ADDR_FOUND to (CORE_ADDR)0 and
return. */
- void (*to_search) PARAMS ((int len, char *data, char *mask,
- CORE_ADDR startaddr, int increment,
- CORE_ADDR lorange, CORE_ADDR hirange,
- CORE_ADDR * addr_found, char *data_found));
+ void (*to_search) (int len, char *data, char *mask,
+ CORE_ADDR startaddr, int increment,
+ CORE_ADDR lorange, CORE_ADDR hirange,
+ CORE_ADDR * addr_found, char *data_found);
#define target_search(len, data, mask, startaddr, increment, lorange, hirange, addr_found, data_found) \
(*current_target.to_search) (len, data, mask, startaddr, increment, \
lorange, hirange, addr_found, data_found)
#endif /* 0 */
- void (*to_files_info) PARAMS ((struct target_ops *));
- int (*to_insert_breakpoint) PARAMS ((CORE_ADDR, char *));
- int (*to_remove_breakpoint) PARAMS ((CORE_ADDR, char *));
- void (*to_terminal_init) PARAMS ((void));
- void (*to_terminal_inferior) PARAMS ((void));
- void (*to_terminal_ours_for_output) PARAMS ((void));
- void (*to_terminal_ours) PARAMS ((void));
- void (*to_terminal_info) PARAMS ((char *, int));
- void (*to_kill) PARAMS ((void));
- void (*to_load) PARAMS ((char *, int));
- int (*to_lookup_symbol) PARAMS ((char *, CORE_ADDR *));
- void (*to_create_inferior) PARAMS ((char *, char *, char **));
- void (*to_post_startup_inferior) PARAMS ((int));
- void (*to_acknowledge_created_inferior) PARAMS ((int));
- void (*to_clone_and_follow_inferior) PARAMS ((int, int *));
- void (*to_post_follow_inferior_by_clone) PARAMS ((void));
- int (*to_insert_fork_catchpoint) PARAMS ((int));
- int (*to_remove_fork_catchpoint) PARAMS ((int));
- int (*to_insert_vfork_catchpoint) PARAMS ((int));
- int (*to_remove_vfork_catchpoint) PARAMS ((int));
- int (*to_has_forked) PARAMS ((int, int *));
- int (*to_has_vforked) PARAMS ((int, int *));
- int (*to_can_follow_vfork_prior_to_exec) PARAMS ((void));
- void (*to_post_follow_vfork) PARAMS ((int, int, int, int));
- int (*to_insert_exec_catchpoint) PARAMS ((int));
- int (*to_remove_exec_catchpoint) PARAMS ((int));
- int (*to_has_execd) PARAMS ((int, char **));
- int (*to_reported_exec_events_per_exec_call) PARAMS ((void));
- int (*to_has_syscall_event) PARAMS ((int, enum target_waitkind *, int *));
- int (*to_has_exited) PARAMS ((int, int, int *));
- void (*to_mourn_inferior) PARAMS ((void));
- int (*to_can_run) PARAMS ((void));
- void (*to_notice_signals) PARAMS ((int pid));
- int (*to_thread_alive) PARAMS ((int pid));
- void (*to_find_new_threads) PARAMS ((void));
- char *(*to_pid_to_str) PARAMS ((int));
- char *(*to_extra_thread_info) PARAMS ((struct thread_info *));
- void (*to_stop) PARAMS ((void));
- int (*to_query) PARAMS ((int /*char */ , char *, char *, int *));
+ void (*to_files_info) (struct target_ops *);
+ int (*to_insert_breakpoint) (CORE_ADDR, char *);
+ int (*to_remove_breakpoint) (CORE_ADDR, char *);
+ void (*to_terminal_init) (void);
+ void (*to_terminal_inferior) (void);
+ void (*to_terminal_ours_for_output) (void);
+ void (*to_terminal_ours) (void);
+ void (*to_terminal_info) (char *, int);
+ void (*to_kill) (void);
+ void (*to_load) (char *, int);
+ int (*to_lookup_symbol) (char *, CORE_ADDR *);
+ void (*to_create_inferior) (char *, char *, char **);
+ void (*to_post_startup_inferior) (int);
+ void (*to_acknowledge_created_inferior) (int);
+ void (*to_clone_and_follow_inferior) (int, int *);
+ void (*to_post_follow_inferior_by_clone) (void);
+ int (*to_insert_fork_catchpoint) (int);
+ int (*to_remove_fork_catchpoint) (int);
+ int (*to_insert_vfork_catchpoint) (int);
+ int (*to_remove_vfork_catchpoint) (int);
+ int (*to_has_forked) (int, int *);
+ int (*to_has_vforked) (int, int *);
+ int (*to_can_follow_vfork_prior_to_exec) (void);
+ void (*to_post_follow_vfork) (int, int, int, int);
+ int (*to_insert_exec_catchpoint) (int);
+ int (*to_remove_exec_catchpoint) (int);
+ int (*to_has_execd) (int, char **);
+ int (*to_reported_exec_events_per_exec_call) (void);
+ int (*to_has_syscall_event) (int, enum target_waitkind *, int *);
+ int (*to_has_exited) (int, int, int *);
+ void (*to_mourn_inferior) (void);
+ int (*to_can_run) (void);
+ void (*to_notice_signals) (int pid);
+ int (*to_thread_alive) (int pid);
+ void (*to_find_new_threads) (void);
+ char *(*to_pid_to_str) (int);
+ char *(*to_extra_thread_info) (struct thread_info *);
+ void (*to_stop) (void);
+ int (*to_query) (int /*char */ , char *, char *, int *);
void (*to_rcmd) (char *command, struct ui_file *output);
- struct symtab_and_line *(*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int));
- struct exception_event_record *(*to_get_current_exception_event) PARAMS ((void));
- char *(*to_pid_to_exec_file) PARAMS ((int pid));
- char *(*to_core_file_to_sym_file) PARAMS ((char *));
+ struct symtab_and_line *(*to_enable_exception_callback) (enum
+ exception_event_kind,
+ int);
+ struct exception_event_record *(*to_get_current_exception_event) (void);
+ char *(*to_pid_to_exec_file) (int pid);
+ char *(*to_core_file_to_sym_file) (char *);
enum strata to_stratum;
struct target_ops
*DONT_USE; /* formerly to_next */
@@ -1101,7 +1102,7 @@ extern char *normal_pid_to_str (int pid);
* can receive this notification (something like with signal handlers).
*/
-extern void (*target_new_objfile_hook) PARAMS ((struct objfile *));
+extern void (*target_new_objfile_hook) (struct objfile *);
#ifndef target_pid_or_tid_to_str
#define target_pid_or_tid_to_str(ID) \
diff --git a/gdb/top.c b/gdb/top.c
index ccd9cc0f560..3bc55f9ab3e 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -285,7 +285,7 @@ char gdb_dirbuf[1024];
The function receives two args: an input stream,
and a prompt string. */
-void (*window_hook) PARAMS ((FILE *, char *));
+void (*window_hook) (FILE *, char *);
int epoch_interface;
int xgdb_verbose;
@@ -392,31 +392,31 @@ static void stop_sig (int);
/* Called after most modules have been initialized, but before taking users
command file. */
-void (*init_ui_hook) PARAMS ((char *argv0));
+void (*init_ui_hook) (char *argv0);
/* This hook is called from within gdb's many mini-event loops which could
steal control from a real user interface's event loop. It returns
non-zero if the user is requesting a detach, zero otherwise. */
-int (*ui_loop_hook) PARAMS ((int));
+int (*ui_loop_hook) (int);
/* Called instead of command_loop at top level. Can be invoked via
return_to_top_level. */
-void (*command_loop_hook) PARAMS ((void));
+void (*command_loop_hook) (void);
/* Called from print_frame_info to list the line we stopped in. */
-void (*print_frame_info_listing_hook) PARAMS ((struct symtab * s, int line,
- int stopline, int noerror));
+void (*print_frame_info_listing_hook) (struct symtab * s, int line,
+ int stopline, int noerror);
/* Replaces most of query. */
-int (*query_hook) PARAMS ((const char *, va_list));
+int (*query_hook) (const char *, va_list);
/* Replaces most of warning. */
-void (*warning_hook) PARAMS ((const char *, va_list));
+void (*warning_hook) (const char *, va_list);
/* These three functions support getting lines of text from the user. They
are used in sequence. First readline_begin_hook is called with a text
@@ -429,51 +429,51 @@ void (*warning_hook) PARAMS ((const char *, va_list));
to notify the GUI that we are done with the interaction window and it
can close it. */
-void (*readline_begin_hook) PARAMS ((char *,...));
-char *(*readline_hook) PARAMS ((char *));
-void (*readline_end_hook) PARAMS ((void));
+void (*readline_begin_hook) (char *, ...);
+char *(*readline_hook) (char *);
+void (*readline_end_hook) (void);
/* Called as appropriate to notify the interface of the specified breakpoint
conditions. */
-void (*create_breakpoint_hook) PARAMS ((struct breakpoint * bpt));
-void (*delete_breakpoint_hook) PARAMS ((struct breakpoint * bpt));
-void (*modify_breakpoint_hook) PARAMS ((struct breakpoint * bpt));
+void (*create_breakpoint_hook) (struct breakpoint * bpt);
+void (*delete_breakpoint_hook) (struct breakpoint * bpt);
+void (*modify_breakpoint_hook) (struct breakpoint * bpt);
/* Called as appropriate to notify the interface that we have attached
to or detached from an already running process. */
-void (*attach_hook) PARAMS ((void));
-void (*detach_hook) PARAMS ((void));
+void (*attach_hook) (void);
+void (*detach_hook) (void);
/* Called during long calculations to allow GUI to repair window damage, and to
check for stop buttons, etc... */
-void (*interactive_hook) PARAMS ((void));
+void (*interactive_hook) (void);
/* Called when the registers have changed, as a hint to a GUI
to minimize window update. */
-void (*registers_changed_hook) PARAMS ((void));
+void (*registers_changed_hook) (void);
/* Tell the GUI someone changed the register REGNO. -1 means
that the caller does not know which register changed or
that several registers have changed (see value_assign). */
-void (*register_changed_hook) PARAMS ((int regno));
+void (*register_changed_hook) (int regno);
/* Tell the GUI someone changed LEN bytes of memory at ADDR */
-void (*memory_changed_hook) PARAMS ((CORE_ADDR addr, int len));
+void (*memory_changed_hook) (CORE_ADDR addr, int len);
/* Called when going to wait for the target. Usually allows the GUI to run
while waiting for target events. */
-int (*target_wait_hook) PARAMS ((int pid, struct target_waitstatus * status));
+int (*target_wait_hook) (int pid, struct target_waitstatus * status);
/* Used by UI as a wrapper around command execution. May do various things
like enabling/disabling buttons, etc... */
-void (*call_command_hook) PARAMS ((struct cmd_list_element * c, char *cmd,
- int from_tty));
+void (*call_command_hook) (struct cmd_list_element * c, char *cmd,
+ int from_tty);
/* Called after a `set' command has finished. Is only run if the
`set' command succeeded. */
@@ -482,7 +482,7 @@ void (*set_hook) (struct cmd_list_element * c);
/* Called when the current thread changes. Argument is thread id. */
-void (*context_hook) PARAMS ((int id));
+void (*context_hook) (int id);
/* Takes control from error (). Typically used to prevent longjmps out of the
middle of the GUI. Usually used in conjunction with a catch routine. */
@@ -782,7 +782,7 @@ read_command_file (stream)
extern void init_proc (void);
-void (*pre_init_ui_hook) PARAMS ((void));
+void (*pre_init_ui_hook) (void);
#ifdef __MSDOS__
void
@@ -2939,7 +2939,7 @@ make_cleanup_free_command_lines (struct command_line **arg)
struct cmd_list_element *
add_info (name, fun, doc)
char *name;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
{
return add_cmd (name, no_class, fun, doc, &infolist);
@@ -3013,7 +3013,7 @@ struct cmd_list_element *
add_com (name, class, fun, doc)
char *name;
enum command_class class;
- void (*fun) PARAMS ((char *, int));
+ void (*fun) (char *, int);
char *doc;
{
return add_cmd (name, class, fun, doc, &cmdlist);
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 564041c8407..a7a3888db11 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -58,9 +58,9 @@
extern int info_verbose;
-extern void (*readline_begin_hook) PARAMS ((char *,...));
-extern char *(*readline_hook) PARAMS ((char *));
-extern void (*readline_end_hook) PARAMS ((void));
+extern void (*readline_begin_hook) (char *, ...);
+extern char *(*readline_hook) (char *);
+extern void (*readline_end_hook) (void);
extern void x_command (char *, int);
extern int addressprint; /* Print machine addresses? */
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index a76850e49ad..6f50f19ffbf 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -115,11 +115,11 @@ extern unsigned long trace_running_p;
/* A hook used to notify the UI of tracepoint operations */
-void (*create_tracepoint_hook) PARAMS ((struct tracepoint *));
-void (*delete_tracepoint_hook) PARAMS ((struct tracepoint *));
-void (*modify_tracepoint_hook) PARAMS ((struct tracepoint *));
-void (*trace_find_hook) PARAMS ((char *arg, int from_tty));
-void (*trace_start_stop_hook) PARAMS ((int start, int from_tty));
+void (*create_tracepoint_hook) (struct tracepoint *);
+void (*delete_tracepoint_hook) (struct tracepoint *);
+void (*modify_tracepoint_hook) (struct tracepoint *);
+void (*trace_find_hook) (char *arg, int from_tty);
+void (*trace_start_stop_hook) (int start, int from_tty);
struct tracepoint *get_tracepoint_by_number (char **, int, int);
int get_traceframe_number (void);
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index 2278052633e..695d70782ff 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -26,15 +26,15 @@
/* Opaque data type */
typedef char *Opaque;
typedef
-Opaque (*OpaqueFuncPtr) PARAMS ((va_list));
+Opaque (*OpaqueFuncPtr) (va_list);
typedef char **OpaqueList;
typedef OpaqueList OpaquePtr;
/* Generic function pointer */
- typedef void (*TuiVoidFuncPtr) PARAMS ((va_list));
- typedef int (*TuiIntFuncPtr) PARAMS ((va_list));
+ typedef void (*TuiVoidFuncPtr) (va_list);
+ typedef int (*TuiIntFuncPtr) (va_list);
/*
- typedef Opaque (*TuiOpaqueFuncPtr) PARAMS ((va_list));
+ typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
*/
typedef OpaqueFuncPtr TuiOpaqueFuncPtr;
diff --git a/gdb/tui/tuiIO.c b/gdb/tui/tuiIO.c
index 1256a50cd1d..c8427c00f3c 100644
--- a/gdb/tui/tuiIO.c
+++ b/gdb/tui/tuiIO.c
@@ -112,7 +112,7 @@ void
tui_tputs (str, affcnt, putfunc)
char *str;
int affcnt;
- int (*putfunc) PARAMS ((int));
+ int (*putfunc) (int);
{
extern char *rl_prompt; /* the prompt string */
diff --git a/gdb/utils.c b/gdb/utils.c
index 520a7939265..81ac1fa4bd7 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -58,7 +58,7 @@
/* readline defines this. */
#undef savestring
-void (*error_begin_hook) PARAMS ((void));
+void (*error_begin_hook) (void);
/* Holds the last error message issued by gdb */
@@ -426,7 +426,7 @@ null_cleanup (void *arg)
cmd_continuation. The new continuation will be added at the front.*/
void
add_continuation (continuation_hook, arg_list)
- void (*continuation_hook) PARAMS ((struct continuation_arg *));
+ void (*continuation_hook) (struct continuation_arg *);
struct continuation_arg *arg_list;
{
struct continuation *continuation_ptr;
@@ -488,7 +488,7 @@ discard_all_continuations ()
intermediate_continuation. The new continuation will be added at the front.*/
void
add_intermediate_continuation (continuation_hook, arg_list)
- void (*continuation_hook) PARAMS ((struct continuation_arg *));
+ void (*continuation_hook) (struct continuation_arg *);
struct continuation_arg *arg_list;
{
struct continuation *continuation_ptr;
@@ -1421,8 +1421,8 @@ static void printchar (int c, void (*do_fputs) (const char *, struct ui_file*),
static void
printchar (c, do_fputs, do_fprintf, stream, quoter)
int c;
- void (*do_fputs) PARAMS ((const char *, struct ui_file*));
- void (*do_fprintf) PARAMS ((struct ui_file*, const char *, ...));
+ void (*do_fputs) (const char *, struct ui_file *);
+ void (*do_fprintf) (struct ui_file *, const char *, ...);
struct ui_file *stream;
int quoter;
{
diff --git a/gdb/v850ice.c b/gdb/v850ice.c
index ef2cdf71ca3..2364d2a9481 100644
--- a/gdb/v850ice.c
+++ b/gdb/v850ice.c
@@ -54,7 +54,7 @@ extern void nexti_command (char *, int);
extern void continue_command (char *, int);
-extern int (*ui_loop_hook) PARAMS ((int));
+extern int (*ui_loop_hook) (int);
/* Prototypes for local functions */
static int init_hidden_window (void);
@@ -855,7 +855,7 @@ static void
do_gdb (cmd, str, func, count)
char *cmd;
char *str;
- void (*func) PARAMS ((char *, int));
+ void (*func) (char *, int);
int count;
{
ReplyMessage ((LRESULT) 1);
diff --git a/gdb/varobj.c b/gdb/varobj.c
index a2699f79d1e..faae5f81b3c 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -287,28 +287,28 @@ struct language_specific
enum varobj_languages language;
/* The number of children of PARENT. */
- int (*number_of_children) PARAMS ((struct varobj * parent));
+ int (*number_of_children) (struct varobj * parent);
/* The name (expression) of a root varobj. */
- char *(*name_of_variable) PARAMS ((struct varobj * parent));
+ char *(*name_of_variable) (struct varobj * parent);
/* The name of the INDEX'th child of PARENT. */
- char *(*name_of_child) PARAMS ((struct varobj * parent, int index));
+ char *(*name_of_child) (struct varobj * parent, int index);
/* The value_ptr of the root variable ROOT. */
- value_ptr (*value_of_root) PARAMS ((struct varobj ** root_handle));
+ value_ptr (*value_of_root) (struct varobj ** root_handle);
/* The value_ptr of the INDEX'th child of PARENT. */
- value_ptr (*value_of_child) PARAMS ((struct varobj * parent, int index));
+ value_ptr (*value_of_child) (struct varobj * parent, int index);
/* The type of the INDEX'th child of PARENT. */
- struct type *(*type_of_child) PARAMS ((struct varobj * parent, int index));
+ struct type *(*type_of_child) (struct varobj * parent, int index);
/* Is VAR editable? */
- int (*variable_editable) PARAMS ((struct varobj * var));
+ int (*variable_editable) (struct varobj * var);
/* The current value of VAR. */
- char *(*value_of_variable) PARAMS ((struct varobj * var));
+ char *(*value_of_variable) (struct varobj * var);
};
/* Array of known source language routines. */
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 7f0cb78d647..298fd513e52 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -48,7 +48,7 @@
#include <unistd.h>
/* The ui's event loop. */
-extern int (*ui_loop_hook) PARAMS ((int signo));
+extern int (*ui_loop_hook) (int signo);
/* If we're not using the old Cygwin header file set, define the
following which never should have been in the generic Win32 API
diff --git a/gdb/wince.c b/gdb/wince.c
index 52c882ccd9b..91ac5cff137 100644
--- a/gdb/wince.c
+++ b/gdb/wince.c
@@ -58,7 +58,7 @@
#include <time.h>
/* The ui's event loop. */
-extern int (*ui_loop_hook) PARAMS ((int signo));
+extern int (*ui_loop_hook) (int signo);
/* If we're not using the old Cygwin header file set, define the
following which never should have been in the generic Win32 API
diff --git a/gdb/xcoffsolib.c b/gdb/xcoffsolib.c
index 93c1243be34..3332268bc18 100644
--- a/gdb/xcoffsolib.c
+++ b/gdb/xcoffsolib.c
@@ -34,7 +34,7 @@
hook is initialized in by rs6000-nat.c. If not, it is currently left
NULL and never called. */
-void (*xcoff_relocate_symtab_hook) PARAMS ((unsigned int)) = NULL;
+void (*xcoff_relocate_symtab_hook) (unsigned int) = NULL;
#ifdef SOLIB_SYMBOLS_MANUAL
diff --git a/gdb/xcoffsolib.h b/gdb/xcoffsolib.h
index 70694933759..fbd3d5b86cd 100644
--- a/gdb/xcoffsolib.h
+++ b/gdb/xcoffsolib.h
@@ -58,4 +58,4 @@ extern struct vmap *vmap;
/* Hook for symbol table relocation at runtime. */
-extern void (*xcoff_relocate_symtab_hook) PARAMS ((unsigned int));
+extern void (*xcoff_relocate_symtab_hook) (unsigned int);