Eliminate PARAMS from function pointer declarations.

This commit is contained in:
Kevin Buettner 2000-06-04 00:41:10 +00:00
parent 450005e7c2
commit 507f3c78fb
53 changed files with 238 additions and 233 deletions

View file

@ -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> 2000-06-03 Christopher Faylor <cgf@cygnus.com>
* win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is

View file

@ -34,11 +34,11 @@ static void print_value_flags (struct type *);
static void breakpoint_changed (struct breakpoint *); static void breakpoint_changed (struct breakpoint *);
void (*annotate_starting_hook) PARAMS ((void)); void (*annotate_starting_hook) (void);
void (*annotate_stopped_hook) PARAMS ((void)); void (*annotate_stopped_hook) (void);
void (*annotate_signalled_hook) PARAMS ((void)); void (*annotate_signalled_hook) (void);
void (*annotate_signal_hook) PARAMS ((void)); void (*annotate_signal_hook) (void);
void (*annotate_exited_hook) PARAMS ((void)); void (*annotate_exited_hook) (void);
static int ignore_count_changed = 0; static int ignore_count_changed = 0;

View file

@ -98,8 +98,8 @@ extern void annotate_elt_rep_end (void);
extern void annotate_elt (void); extern void annotate_elt (void);
extern void annotate_array_section_end (void); extern void annotate_array_section_end (void);
extern void (*annotate_starting_hook) PARAMS ((void)); extern void (*annotate_starting_hook) (void);
extern void (*annotate_stopped_hook) PARAMS ((void)); extern void (*annotate_stopped_hook) (void);
extern void (*annotate_signalled_hook) PARAMS ((void)); extern void (*annotate_signalled_hook) (void);
extern void (*annotate_signal_hook) PARAMS ((void)); extern void (*annotate_signal_hook) (void);
extern void (*annotate_exited_hook) PARAMS ((void)); extern void (*annotate_exited_hook) (void);

View file

@ -7396,7 +7396,7 @@ ignore_command (args, from_tty)
static void static void
map_breakpoint_numbers (args, function) map_breakpoint_numbers (args, function)
char *args; char *args;
void (*function) PARAMS ((struct breakpoint *)); void (*function) (struct breakpoint *);
{ {
register char *p = args; register char *p = args;
char *p1; char *p1;

View file

@ -84,7 +84,7 @@ struct cmd_list_element *
add_cmd (name, class, fun, doc, list) add_cmd (name, class, fun, doc, list)
char *name; char *name;
enum command_class class; enum command_class class;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
struct cmd_list_element **list; struct cmd_list_element **list;
{ {
@ -168,7 +168,7 @@ struct cmd_list_element *
add_abbrev_cmd (name, class, fun, doc, list) add_abbrev_cmd (name, class, fun, doc, list)
char *name; char *name;
enum command_class class; enum command_class class;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
struct cmd_list_element **list; struct cmd_list_element **list;
{ {
@ -222,7 +222,7 @@ add_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
allow_unknown, list) allow_unknown, list)
char *name; char *name;
enum command_class class; enum command_class class;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
struct cmd_list_element **prefixlist; struct cmd_list_element **prefixlist;
char *prefixname; char *prefixname;
@ -243,7 +243,7 @@ add_abbrev_prefix_cmd (name, class, fun, doc, prefixlist, prefixname,
allow_unknown, list) allow_unknown, list)
char *name; char *name;
enum command_class class; enum command_class class;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
struct cmd_list_element **prefixlist; struct cmd_list_element **prefixlist;
char *prefixname; char *prefixname;

View file

@ -108,12 +108,11 @@ struct cmd_list_element
union union
{ {
/* If type is not_set_cmd, call it like this: */ /* 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 /* If type is cmd_set or show_cmd, first set the variables, and
then call this. */ then call this. */
void (*sfunc) PARAMS ((char *args, int from_tty, void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
struct cmd_list_element * c));
} }
function; function;
#define NO_FUNCTION ((void (*) PARAMS((char *args, int from_tty))) 0) #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" returned relative to this position. For example, suppose TEXT is "foo"
and we want to complete to "foobar". If WORD is "oo", return and we want to complete to "foobar". If WORD is "oo", return
"oobar"; if WORD is "baz/foo", return "baz/foobar". */ "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" /* Type of "set" or "show" command (or SET_NOT_SET if not "set"
or "show"). */ or "show"). */

View file

@ -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 /* Hook in rs6000-tdep.c for determining the TOC address when
calling functions in the inferior. */ calling functions in the inferior. */
extern 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 /* xcoffread.c provides a function to determine the TOC offset
for a given object file. for a given object file.

View file

@ -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 old code that assumed that only one hook could be set, and which called
exec_file_display_hook directly. */ 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 */ hook_type exec_file_display_hook; /* the original hook */
static hook_type *exec_file_extra_hooks; /* array of additional hooks */ static hook_type *exec_file_extra_hooks; /* array of additional hooks */
@ -124,7 +124,7 @@ call_extra_exec_file_hooks (filename)
void void
specify_exec_file_hook (hook) specify_exec_file_hook (hook)
void (*hook) PARAMS ((char *)); void (*hook) (char *);
{ {
hook_type *new_array; hook_type *new_array;

View file

@ -1682,8 +1682,8 @@ d10v_gdbarch_init (info, arches)
} }
extern void (*target_resume_hook) PARAMS ((void)); extern void (*target_resume_hook) (void);
extern void (*target_wait_loop_hook) PARAMS ((void)); extern void (*target_wait_loop_hook) (void);
void void
_initialize_d10v_tdep () _initialize_d10v_tdep ()

View file

@ -1365,8 +1365,8 @@ display_trace (low, high)
} }
} }
extern void (*target_resume_hook) PARAMS ((void)); extern void (*target_resume_hook) (void);
extern void (*target_wait_loop_hook) PARAMS ((void)); extern void (*target_wait_loop_hook) (void);
void void
_initialize_d30v_tdep () _initialize_d30v_tdep ()

View file

@ -809,7 +809,7 @@ struct cont_elem
int sym_idx; int sym_idx;
int sym_end; int sym_end;
int symnum; int symnum;
int (*func) PARAMS ((struct objfile *, struct symbol *, char *)); int (*func) (struct objfile *, struct symbol *, char *);
/* other state dependancies include: /* other state dependancies include:
(assumption is that these will not change since process_now FIXME!!) (assumption is that these will not change since process_now FIXME!!)
stringtab_global stringtab_global
@ -828,7 +828,7 @@ void
process_later (sym, p, f) process_later (sym, p, f)
struct symbol *sym; struct symbol *sym;
char *p; char *p;
int (*f) PARAMS ((struct objfile *, struct symbol *, char *)); int (*f) (struct objfile *, struct symbol *, char *);
{ {
/* Allocate more space for the deferred list. */ /* Allocate more space for the deferred list. */
@ -867,7 +867,7 @@ process_now (objfile)
struct symbol *sym; struct symbol *sym;
char *stabs; char *stabs;
int err; 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 /* Save the state of our caller, we'll want to restore it before
returning. */ returning. */

View file

@ -478,7 +478,7 @@ dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write)
if (dcache_enabled_p) 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; xfunc = should_write ? dcache_poke_byte : dcache_peek_byte;
for (i = 0; i < len; i++) for (i = 0; i < len; i++)

View file

@ -23,9 +23,7 @@
#ifndef DCACHE_H #ifndef DCACHE_H
#define DCACHE_H #define DCACHE_H
typedef int (*memxferfunc) PARAMS ((CORE_ADDR memaddr, typedef int (*memxferfunc) (CORE_ADDR memaddr, char *myaddr, int len);
char *myaddr,
int len));
typedef struct dcache_struct DCACHE; typedef struct dcache_struct DCACHE;

View file

@ -51,7 +51,7 @@ load_srec (desc, file, load_offset, maxrecsize, flags, hashmark, waitack)
int maxrecsize; int maxrecsize;
int flags; int flags;
int hashmark; int hashmark;
int (*waitack) PARAMS ((void)); int (*waitack) (void);
{ {
bfd *abfd; bfd *abfd;
asection *s; asection *s;

View file

@ -31,7 +31,7 @@
/* Type of function passed to bfd_map_over_sections. */ /* 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. */ /* 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 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. */ 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_fetch_registers) (int regno);
static void (*orig_monitor_store_registers) PARAMS ((int regno)); static void (*orig_monitor_store_registers) (int regno);
/* Pointer to static function in monitor. for loading programs. /* Pointer to static function in monitor. for loading programs.
We use this function for loading S-records via the serial link. */ 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. */ /* This flag is set if a fast ethernet download should be used. */

View file

@ -47,7 +47,7 @@
struct vmap *map_vmap (bfd *, bfd *); struct vmap *map_vmap (bfd *, bfd *);
void (*file_changed_hook) PARAMS ((char *)); void (*file_changed_hook) (char *);
/* Prototypes for local functions */ /* Prototypes for local functions */
@ -473,7 +473,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
boolean res; boolean res;
struct section_table *p; struct section_table *p;
CORE_ADDR nextsectaddr, memend; 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; asection *section;
if (len <= 0) if (len <= 0)

View file

@ -103,9 +103,9 @@ fork_inferior (exec_file, allargs, env, traceme_fun, init_trace_fun,
char *exec_file; char *exec_file;
char *allargs; char *allargs;
char **env; char **env;
void (*traceme_fun) PARAMS ((void)); void (*traceme_fun) (void);
void (*init_trace_fun) PARAMS ((int)); void (*init_trace_fun) (int);
void (*pre_trace_fun) PARAMS ((void)); void (*pre_trace_fun) (void);
char *shell_file; char *shell_file;
{ {
int pid; int pid;

View file

@ -78,12 +78,12 @@ extern void generic_search (int len, char *data, char *mask,
/* Hook for `exec_file_command' command to call. */ /* 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 /* Hook for "file_command", which is more useful than above
(because it is invoked AFTER symbols are read, not before) */ (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)); 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 another file). Returns nonzero if the handler recognizes the
format, zero otherwise. */ 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 /* 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, given core file format or not. Returns zero if it can't,
nonzero otherwise. */ 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 /* Extract the register values out of the core file and store them where
`read_register' will find them. `read_register' will find them.
@ -172,9 +172,9 @@ struct core_fns
registers in a large upage-plus-stack ".reg" section. Original upage registers in a large upage-plus-stack ".reg" section. Original upage
address X is at location core_reg_sect+x+reg_addr. */ address X is at location core_reg_sect+x+reg_addr. */
void (*core_read_registers) PARAMS ((char *core_reg_sect, void (*core_read_registers) (char *core_reg_sect,
unsigned core_reg_size, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)); int which, CORE_ADDR reg_addr);
/* Finds the next struct core_fns. They are allocated and initialized /* Finds the next struct core_fns. They are allocated and initialized
in whatever module implements the functions pointed to; an in whatever module implements the functions pointed to; an

View file

@ -524,7 +524,7 @@ hpux_thread_create_inferior (exec_file, allargs, env)
*/ */
/* Saved pointer to previous owner of the new_objfile event. */ /* 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 void
hpux_thread_new_objfile (objfile) hpux_thread_new_objfile (objfile)

View file

@ -141,15 +141,15 @@ struct language_defn
/* Parser function. */ /* Parser function. */
int (*la_parser) PARAMS ((void)); int (*la_parser) (void);
/* Parser error function */ /* Parser error function */
void (*la_error) PARAMS ((char *)); void (*la_error) (char *);
/* Evaluate an expression. */ /* Evaluate an expression. */
struct value *(*evaluate_exp) PARAMS ((struct type *, struct expression *, struct value *(*evaluate_exp) (struct type *, struct expression *,
int *, enum noside)); int *, enum noside);
void (*la_printchar) (int ch, struct ui_file * stream); 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); 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. */ /* Print a type using syntax appropriate for this language. */

View file

@ -902,7 +902,7 @@ update_stop_threads (test_pid)
*/ */
/* Saved pointer to previous owner of the new_objfile event. */ /* 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 void
linuxthreads_new_objfile (objfile) linuxthreads_new_objfile (objfile)

View file

@ -699,8 +699,7 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets, objfile)
struct objfile *objfile; struct objfile *objfile;
{ {
const bfd_size_type external_sym_size = debug_swap->external_sym_size; const bfd_size_type external_sym_size = debug_swap->external_sym_size;
void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *)) = void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
debug_swap->swap_sym_in;
char *name; char *name;
struct symbol *s; struct symbol *s;
struct block *b; 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_sym_size = debug_swap->external_sym_size;
const bfd_size_type external_rfd_size = debug_swap->external_rfd_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; const bfd_size_type external_ext_size = debug_swap->external_ext_size;
void (*const swap_ext_in) PARAMS ((bfd *, PTR, EXTR *)) void (*const swap_ext_in) (bfd *, PTR, EXTR *) = debug_swap->swap_ext_in;
= debug_swap->swap_ext_in; void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *)) void (*const swap_rfd_in) (bfd *, PTR, RFDT *) = debug_swap->swap_rfd_in;
= debug_swap->swap_sym_in;
void (*const swap_rfd_in) PARAMS ((bfd *, PTR, RFDT *))
= debug_swap->swap_rfd_in;
int f_idx, s_idx; int f_idx, s_idx;
HDRR *hdr = &debug_info->symbolic_header; HDRR *hdr = &debug_info->symbolic_header;
/* Running pointers */ /* Running pointers */
@ -3167,8 +3163,7 @@ handle_psymbol_enumerators (objfile, fh, stype, svalue)
CORE_ADDR svalue; CORE_ADDR svalue;
{ {
const bfd_size_type external_sym_size = debug_swap->external_sym_size; const bfd_size_type external_sym_size = debug_swap->external_sym_size;
void (*const swap_sym_in) PARAMS ((bfd *, PTR, SYMR *)) void (*const swap_sym_in) (bfd *, PTR, SYMR *) = debug_swap->swap_sym_in;
= debug_swap->swap_sym_in;
char *ext_sym = ((char *) debug_info->external_sym char *ext_sym = ((char *) debug_info->external_sym
+ ((fh->isymBase + cur_sdx + 1) * external_sym_size)); + ((fh->isymBase + cur_sdx + 1) * external_sym_size));
SYMR sh; SYMR sh;
@ -3260,8 +3255,8 @@ psymtab_to_symtab_1 (pst, filename)
{ {
bfd_size_type external_sym_size; bfd_size_type external_sym_size;
bfd_size_type external_pdr_size; bfd_size_type external_pdr_size;
void (*swap_sym_in) PARAMS ((bfd *, PTR, SYMR *)); void (*swap_sym_in) (bfd *, PTR, SYMR *);
void (*swap_pdr_in) PARAMS ((bfd *, PTR, PDR *)); void (*swap_pdr_in) (bfd *, PTR, PDR *);
int i; int i;
struct symtab *st; struct symtab *st;
FDR *fh; FDR *fh;

View file

@ -95,16 +95,15 @@ struct monitor_ops
GDB with the value of a register. */ GDB with the value of a register. */
char *dump_registers; /* Command to dump all regs at once */ char *dump_registers; /* Command to dump all regs at once */
char *register_pattern; /* Pattern that picks out register from reg dump */ char *register_pattern; /* Pattern that picks out register from reg dump */
void (*supply_register) PARAMS ((char *name, int namelen, void (*supply_register) (char *name, int namelen, char *val, int vallen);
char *val, int vallen));
void (*load_routine) PARAMS ((serial_t desc, char *file, void (*load_routine) PARAMS ((serial_t desc, char *file,
int hashmark)); /* Download routine */ int hashmark)); /* Download routine */
int (*dumpregs) PARAMS ((void)); /* routine to dump all registers */ int (*dumpregs) PARAMS ((void)); /* routine to dump all registers */
int (*continue_hook) PARAMS ((void)); /* Emit the continue command */ int (*continue_hook) PARAMS ((void)); /* Emit the continue command */
int (*wait_filter) PARAMS ((char *buf, /* Maybe contains registers */ int (*wait_filter) (char *buf, /* Maybe contains registers */
int bufmax, int bufmax,
int *response_length, int *response_length,
struct target_waitstatus * status)); struct target_waitstatus * status);
char *load; /* load command */ char *load; /* load command */
char *loadresp; /* Response to load command */ char *loadresp; /* Response to load command */
char *prompt; /* monitor command prompt */ char *prompt; /* monitor command prompt */

View file

@ -1409,7 +1409,7 @@ bdm_update_flash_command (args, from_tty)
{ {
int status, pktlen; int status, pktlen;
struct cleanup *old_chain; struct cleanup *old_chain;
void (*store_registers_tmp) PARAMS ((int)); void (*store_registers_tmp) (int);
if (!ocd_desc) if (!ocd_desc)
error ("Not connected to OCD device."); error ("Not connected to OCD device.");

View file

@ -2598,7 +2598,7 @@ proc_set_watchpoint (pi, addr, len, wflags)
every time, I don't need to lseek it. */ every time, I don't need to lseek it. */
int int
proc_iterate_over_mappings (func) proc_iterate_over_mappings (func)
int (*func) PARAMS ((int, CORE_ADDR)); int (*func) (int, CORE_ADDR);
{ {
struct prmap *map; struct prmap *map;
procinfo *pi; procinfo *pi;
@ -3140,7 +3140,7 @@ proc_update_threads (pi)
int int
proc_iterate_over_threads (pi, func, ptr) proc_iterate_over_threads (pi, func, ptr)
procinfo *pi; procinfo *pi;
int (*func) PARAMS ((procinfo *, procinfo *, void *)); int (*func) (procinfo *, procinfo *, void *);
void *ptr; void *ptr;
{ {
procinfo *thread, *next; procinfo *thread, *next;

View file

@ -101,7 +101,7 @@ fill_fpregset (fpregsetp, regno)
/* this could use elf_interpreter() from elfread.c */ /* this could use elf_interpreter() from elfread.c */
int int
proc_iterate_over_mappings (func) proc_iterate_over_mappings (func)
int (*func) PARAMS ((int, CORE_ADDR)); int (*func) (int, CORE_ADDR);
{ {
vaddr_t curseg, memptr; vaddr_t curseg, memptr;
pt_vseg_t pv; pt_vseg_t pv;

View file

@ -42,7 +42,7 @@
extern void _initialize_remote_sim (void); 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); static void dump_mem (char *buf, int len);

View file

@ -77,10 +77,10 @@ struct gr_settings
DCACHE *dcache; DCACHE *dcache;
char *prompt; char *prompt;
struct target_ops *ops; struct target_ops *ops;
int (*clear_all_breakpoints) PARAMS ((void)); int (*clear_all_breakpoints) (void);
memxferfunc readfunc; memxferfunc readfunc;
memxferfunc writefunc; memxferfunc writefunc;
void (*checkin) PARAMS ((void)); void (*checkin) (void);
}; };
extern struct gr_settings *gr_settings; extern struct gr_settings *gr_settings;

View file

@ -603,9 +603,8 @@ add_packet_config_cmd (config, name, title, set_func, show_func,
struct packet_config *config; struct packet_config *config;
char *name; char *name;
char *title; char *title;
void (*set_func) PARAMS ((char *args, int from_tty, void (*set_func) (char *args, int from_tty, struct cmd_list_element * c);
struct cmd_list_element * c)); void (*show_func) (char *name, int from_tty);
void (*show_func) PARAMS ((char *name, int from_tty));
struct cmd_list_element **setlist; struct cmd_list_element **setlist;
struct cmd_list_element **showlist; 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 /* These are pointers to hook functions that may be set in order to
modify resume/wait behavior for a particular architecture. */ modify resume/wait behavior for a particular architecture. */
void (*target_resume_hook) PARAMS ((void)); void (*target_resume_hook) (void);
void (*target_wait_loop_hook) PARAMS ((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 /* Send ^C to target to halt it. Target will respond, and send us a
packet. */ packet. */
static void (*ofunc) PARAMS ((int)); static void (*ofunc) (int);
/* The command line interface's stop routine. This function is installed /* The command line interface's stop routine. This function is installed
as a signal handler for SIGINT. The first time a user requests a as a signal handler for SIGINT. The first time a user requests a

View file

@ -47,7 +47,7 @@ stepBreaks[2];
inferior under AIX. The initialization code in rs6000-nat.c sets inferior under AIX. The initialization code in rs6000-nat.c sets
this hook to point to find_toc_address. */ 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 */ /* Static function prototypes */

View file

@ -30,7 +30,7 @@
#ifdef _WIN32 #ifdef _WIN32
/* On Windows, this function pointer is initialized to a function in /* On Windows, this function pointer is initialized to a function in
the wiggler DLL. */ the wiggler DLL. */
static int (*dll_do_command) PARAMS ((const char *, char *)); static int (*dll_do_command) (const char *, char *);
#endif #endif
static int static int

View file

@ -857,7 +857,7 @@ sol_thread_create_inferior (exec_file, allargs, env)
*/ */
/* Saved pointer to previous owner of the new_objfile event. */ /* 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 void
sol_thread_new_objfile (objfile) sol_thread_new_objfile (objfile)

View file

@ -560,9 +560,9 @@ download (target_name, args, from_tty, write_routine, start_routine)
char *target_name; char *target_name;
char *args; char *args;
int from_tty; int from_tty;
void (*write_routine) PARAMS ((bfd * from_bfd, asection * from_sec, void (*write_routine) (bfd * from_bfd, asection * from_sec,
file_ptr from_addr, bfd_vma to_addr, int len)); file_ptr from_addr, bfd_vma to_addr, int len);
void (*start_routine) PARAMS ((bfd_vma entry)); void (*start_routine) (bfd_vma entry);
{ {
struct cleanup *old_chain; struct cleanup *old_chain;
asection *section; asection *section;

View file

@ -213,7 +213,7 @@ extern void elfstab_offset_sections (struct objfile *,
extern void process_later extern void process_later
(struct symbol *, char *, (struct symbol *, char *,
int (*f) PARAMS ((struct objfile *, struct symbol *, char *))); int (*f) (struct objfile *, struct symbol *, char *));
extern int symbol_reference_defined (char **); extern int symbol_reference_defined (char **);

View file

@ -46,7 +46,7 @@ void args_info (char *, int);
void locals_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); void _initialize_stack (void);

View file

@ -68,9 +68,9 @@ void (*show_load_progress) (const char *section,
unsigned long section_size, unsigned long section_size,
unsigned long total_sent, unsigned long total_sent,
unsigned long total_size); unsigned long total_size);
void (*pre_add_symbol_hook) PARAMS ((char *)); void (*pre_add_symbol_hook) (char *);
void (*post_add_symbol_hook) PARAMS ((void)); void (*post_add_symbol_hook) (void);
void (*target_new_objfile_hook) PARAMS ((struct objfile *)); void (*target_new_objfile_hook) (struct objfile *);
static void clear_symtab_users_cleanup (void *ignore); 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 */ /* Target vector for refreshing overlay mapped state */
static void simple_overlay_update (struct obj_section *); static void simple_overlay_update (struct obj_section *);
void (*target_overlay_update) PARAMS ((struct obj_section *)) void (*target_overlay_update) (struct obj_section *) = simple_overlay_update;
= simple_overlay_update;
/* Function: section_is_overlay (SECTION) /* Function: section_is_overlay (SECTION)
Returns true if SECTION has VMA not equal to LMA, ie. Returns true if SECTION has VMA not equal to LMA, ie.

View file

@ -88,13 +88,13 @@ struct sym_fns
called during symbol_file_add, when we begin debugging an entirely new called during symbol_file_add, when we begin debugging an entirely new
program. */ 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 /* Reads any initial information from a symbol file, and initializes the
struct sym_fns SF in preparation for sym_read(). It is called every struct sym_fns SF in preparation for sym_read(). It is called every
time we read a symbol file for any reason. */ time we read a symbol file for any reason. */
void (*sym_init) PARAMS ((struct objfile *)); void (*sym_init) (struct objfile *);
/* sym_read (objfile, mainline) /* sym_read (objfile, mainline)
Reads a symbol file into a psymtab (or possibly a symtab). 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) symbol file (e.g. shared library or dynamically loaded file)
is being read. */ 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 /* Called when we are finished with an objfile. Should do all cleanup
that is specific to the object file format for the particular objfile. */ 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, /* This function produces a file-dependent section_offsets structure,
allocated in the objfile's storage, and based on the parameter. 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 a string, where NULL means the default, and others are parsed in a file
dependent way. */ 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 /* Finds the next struct sym_fns. They are allocated and initialized
in whatever module implements the functions pointed to; an in whatever module implements the functions pointed to; an

View file

@ -1011,7 +1011,7 @@ struct partial_symtab
/* Pointer to function which will read in the symtab corresponding to /* Pointer to function which will read in the symtab corresponding to
this psymtab. */ 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 /* Information that lets read_symtab() locate the part of the symbol table
that this psymtab corresponds to. This information is private to the that this psymtab corresponds to. This information is private to the

View file

@ -2126,7 +2126,7 @@ Use \"info signals\" for a list of symbolic signals.");
} }
/* Returns zero to leave the inferior alone, one to interrupt it. */ /* 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; int target_activity_fd;
/* Convert a normal process ID to a string. Returns the string in a static /* Convert a normal process ID to a string. Returns the string in a static

View file

@ -316,7 +316,7 @@ enum target_signal target_signal_from_name (char *);
on TARGET_ACTIVITY_FD. */ on TARGET_ACTIVITY_FD. */
extern int target_activity_fd; extern int target_activity_fd;
/* Returns zero to leave the inferior alone, one to interrupt it. */ /* 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: */ struct thread_info; /* fwd decl for parameter list below: */
@ -327,19 +327,19 @@ struct target_ops
char *to_doc; /* Documentation. Does not include trailing char *to_doc; /* Documentation. Does not include trailing
newline, and starts with a one-line descrip- newline, and starts with a one-line descrip-
tion (probably similar to to_longname). */ tion (probably similar to to_longname). */
void (*to_open) PARAMS ((char *, int)); void (*to_open) (char *, int);
void (*to_close) PARAMS ((int)); void (*to_close) (int);
void (*to_attach) PARAMS ((char *, int)); void (*to_attach) (char *, int);
void (*to_post_attach) PARAMS ((int)); void (*to_post_attach) (int);
void (*to_require_attach) PARAMS ((char *, int)); void (*to_require_attach) (char *, int);
void (*to_detach) PARAMS ((char *, int)); void (*to_detach) (char *, int);
void (*to_require_detach) PARAMS ((int, char *, int)); void (*to_require_detach) (int, char *, int);
void (*to_resume) PARAMS ((int, int, enum target_signal)); void (*to_resume) (int, int, enum target_signal);
int (*to_wait) PARAMS ((int, struct target_waitstatus *)); int (*to_wait) (int, struct target_waitstatus *);
void (*to_post_wait) PARAMS ((int, int)); void (*to_post_wait) (int, int);
void (*to_fetch_registers) PARAMS ((int)); void (*to_fetch_registers) (int);
void (*to_store_registers) PARAMS ((int)); void (*to_store_registers) (int);
void (*to_prepare_to_store) PARAMS ((void)); void (*to_prepare_to_store) (void);
/* Transfer LEN bytes of memory between GDB address MYADDR and /* Transfer LEN bytes of memory between GDB address MYADDR and
target address MEMADDR. If WRITE, transfer them to the target, else 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 transfer right at MEMADDR, but we could transfer at least
something at MEMADDR + N. */ something at MEMADDR + N. */
int (*to_xfer_memory) PARAMS ((CORE_ADDR memaddr, char *myaddr, int (*to_xfer_memory) (CORE_ADDR memaddr, char *myaddr,
int len, int write, int len, int write, struct target_ops * target);
struct target_ops * target));
#if 0 #if 0
/* Enable this after 4.12. */ /* 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 If we don't find anything, set *ADDR_FOUND to (CORE_ADDR)0 and
return. */ return. */
void (*to_search) PARAMS ((int len, char *data, char *mask, void (*to_search) (int len, char *data, char *mask,
CORE_ADDR startaddr, int increment, CORE_ADDR startaddr, int increment,
CORE_ADDR lorange, CORE_ADDR hirange, CORE_ADDR lorange, CORE_ADDR hirange,
CORE_ADDR * addr_found, char *data_found)); CORE_ADDR * addr_found, char *data_found);
#define target_search(len, data, mask, startaddr, increment, lorange, hirange, addr_found, 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, \ (*current_target.to_search) (len, data, mask, startaddr, increment, \
lorange, hirange, addr_found, data_found) lorange, hirange, addr_found, data_found)
#endif /* 0 */ #endif /* 0 */
void (*to_files_info) PARAMS ((struct target_ops *)); void (*to_files_info) (struct target_ops *);
int (*to_insert_breakpoint) PARAMS ((CORE_ADDR, char *)); int (*to_insert_breakpoint) (CORE_ADDR, char *);
int (*to_remove_breakpoint) PARAMS ((CORE_ADDR, char *)); int (*to_remove_breakpoint) (CORE_ADDR, char *);
void (*to_terminal_init) PARAMS ((void)); void (*to_terminal_init) (void);
void (*to_terminal_inferior) PARAMS ((void)); void (*to_terminal_inferior) (void);
void (*to_terminal_ours_for_output) PARAMS ((void)); void (*to_terminal_ours_for_output) (void);
void (*to_terminal_ours) PARAMS ((void)); void (*to_terminal_ours) (void);
void (*to_terminal_info) PARAMS ((char *, int)); void (*to_terminal_info) (char *, int);
void (*to_kill) PARAMS ((void)); void (*to_kill) (void);
void (*to_load) PARAMS ((char *, int)); void (*to_load) (char *, int);
int (*to_lookup_symbol) PARAMS ((char *, CORE_ADDR *)); int (*to_lookup_symbol) (char *, CORE_ADDR *);
void (*to_create_inferior) PARAMS ((char *, char *, char **)); void (*to_create_inferior) (char *, char *, char **);
void (*to_post_startup_inferior) PARAMS ((int)); void (*to_post_startup_inferior) (int);
void (*to_acknowledge_created_inferior) PARAMS ((int)); void (*to_acknowledge_created_inferior) (int);
void (*to_clone_and_follow_inferior) PARAMS ((int, int *)); void (*to_clone_and_follow_inferior) (int, int *);
void (*to_post_follow_inferior_by_clone) PARAMS ((void)); void (*to_post_follow_inferior_by_clone) (void);
int (*to_insert_fork_catchpoint) PARAMS ((int)); int (*to_insert_fork_catchpoint) (int);
int (*to_remove_fork_catchpoint) PARAMS ((int)); int (*to_remove_fork_catchpoint) (int);
int (*to_insert_vfork_catchpoint) PARAMS ((int)); int (*to_insert_vfork_catchpoint) (int);
int (*to_remove_vfork_catchpoint) PARAMS ((int)); int (*to_remove_vfork_catchpoint) (int);
int (*to_has_forked) PARAMS ((int, int *)); int (*to_has_forked) (int, int *);
int (*to_has_vforked) PARAMS ((int, int *)); int (*to_has_vforked) (int, int *);
int (*to_can_follow_vfork_prior_to_exec) PARAMS ((void)); int (*to_can_follow_vfork_prior_to_exec) (void);
void (*to_post_follow_vfork) PARAMS ((int, int, int, int)); void (*to_post_follow_vfork) (int, int, int, int);
int (*to_insert_exec_catchpoint) PARAMS ((int)); int (*to_insert_exec_catchpoint) (int);
int (*to_remove_exec_catchpoint) PARAMS ((int)); int (*to_remove_exec_catchpoint) (int);
int (*to_has_execd) PARAMS ((int, char **)); int (*to_has_execd) (int, char **);
int (*to_reported_exec_events_per_exec_call) PARAMS ((void)); int (*to_reported_exec_events_per_exec_call) (void);
int (*to_has_syscall_event) PARAMS ((int, enum target_waitkind *, int *)); int (*to_has_syscall_event) (int, enum target_waitkind *, int *);
int (*to_has_exited) PARAMS ((int, int, int *)); int (*to_has_exited) (int, int, int *);
void (*to_mourn_inferior) PARAMS ((void)); void (*to_mourn_inferior) (void);
int (*to_can_run) PARAMS ((void)); int (*to_can_run) (void);
void (*to_notice_signals) PARAMS ((int pid)); void (*to_notice_signals) (int pid);
int (*to_thread_alive) PARAMS ((int pid)); int (*to_thread_alive) (int pid);
void (*to_find_new_threads) PARAMS ((void)); void (*to_find_new_threads) (void);
char *(*to_pid_to_str) PARAMS ((int)); char *(*to_pid_to_str) (int);
char *(*to_extra_thread_info) PARAMS ((struct thread_info *)); char *(*to_extra_thread_info) (struct thread_info *);
void (*to_stop) PARAMS ((void)); void (*to_stop) (void);
int (*to_query) PARAMS ((int /*char */ , char *, char *, int *)); int (*to_query) (int /*char */ , char *, char *, int *);
void (*to_rcmd) (char *command, struct ui_file *output); void (*to_rcmd) (char *command, struct ui_file *output);
struct symtab_and_line *(*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int)); struct symtab_and_line *(*to_enable_exception_callback) (enum
struct exception_event_record *(*to_get_current_exception_event) PARAMS ((void)); exception_event_kind,
char *(*to_pid_to_exec_file) PARAMS ((int pid)); int);
char *(*to_core_file_to_sym_file) PARAMS ((char *)); 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; enum strata to_stratum;
struct target_ops struct target_ops
*DONT_USE; /* formerly to_next */ *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). * 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 #ifndef target_pid_or_tid_to_str
#define target_pid_or_tid_to_str(ID) \ #define target_pid_or_tid_to_str(ID) \

View file

@ -285,7 +285,7 @@ char gdb_dirbuf[1024];
The function receives two args: an input stream, The function receives two args: an input stream,
and a prompt string. */ and a prompt string. */
void (*window_hook) PARAMS ((FILE *, char *)); void (*window_hook) (FILE *, char *);
int epoch_interface; int epoch_interface;
int xgdb_verbose; int xgdb_verbose;
@ -392,31 +392,31 @@ static void stop_sig (int);
/* Called after most modules have been initialized, but before taking users /* Called after most modules have been initialized, but before taking users
command file. */ 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 /* 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 steal control from a real user interface's event loop. It returns
non-zero if the user is requesting a detach, zero otherwise. */ 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 /* Called instead of command_loop at top level. Can be invoked via
return_to_top_level. */ 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. */ /* Called from print_frame_info to list the line we stopped in. */
void (*print_frame_info_listing_hook) PARAMS ((struct symtab * s, int line, void (*print_frame_info_listing_hook) (struct symtab * s, int line,
int stopline, int noerror)); int stopline, int noerror);
/* Replaces most of query. */ /* Replaces most of query. */
int (*query_hook) PARAMS ((const char *, va_list)); int (*query_hook) (const char *, va_list);
/* Replaces most of warning. */ /* 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 /* 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 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 to notify the GUI that we are done with the interaction window and it
can close it. */ can close it. */
void (*readline_begin_hook) PARAMS ((char *,...)); void (*readline_begin_hook) (char *, ...);
char *(*readline_hook) PARAMS ((char *)); char *(*readline_hook) (char *);
void (*readline_end_hook) PARAMS ((void)); void (*readline_end_hook) (void);
/* Called as appropriate to notify the interface of the specified breakpoint /* Called as appropriate to notify the interface of the specified breakpoint
conditions. */ conditions. */
void (*create_breakpoint_hook) PARAMS ((struct breakpoint * bpt)); void (*create_breakpoint_hook) (struct breakpoint * bpt);
void (*delete_breakpoint_hook) PARAMS ((struct breakpoint * bpt)); void (*delete_breakpoint_hook) (struct breakpoint * bpt);
void (*modify_breakpoint_hook) PARAMS ((struct breakpoint * bpt)); void (*modify_breakpoint_hook) (struct breakpoint * bpt);
/* Called as appropriate to notify the interface that we have attached /* Called as appropriate to notify the interface that we have attached
to or detached from an already running process. */ to or detached from an already running process. */
void (*attach_hook) PARAMS ((void)); void (*attach_hook) (void);
void (*detach_hook) PARAMS ((void)); void (*detach_hook) (void);
/* Called during long calculations to allow GUI to repair window damage, and to /* Called during long calculations to allow GUI to repair window damage, and to
check for stop buttons, etc... */ 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 /* Called when the registers have changed, as a hint to a GUI
to minimize window update. */ 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 /* Tell the GUI someone changed the register REGNO. -1 means
that the caller does not know which register changed or that the caller does not know which register changed or
that several registers have changed (see value_assign). */ 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 */ /* 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 /* Called when going to wait for the target. Usually allows the GUI to run
while waiting for target events. */ 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 /* Used by UI as a wrapper around command execution. May do various things
like enabling/disabling buttons, etc... */ like enabling/disabling buttons, etc... */
void (*call_command_hook) PARAMS ((struct cmd_list_element * c, char *cmd, void (*call_command_hook) (struct cmd_list_element * c, char *cmd,
int from_tty)); int from_tty);
/* Called after a `set' command has finished. Is only run if the /* Called after a `set' command has finished. Is only run if the
`set' command succeeded. */ `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. */ /* 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 /* Takes control from error (). Typically used to prevent longjmps out of the
middle of the GUI. Usually used in conjunction with a catch routine. */ 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); extern void init_proc (void);
void (*pre_init_ui_hook) PARAMS ((void)); void (*pre_init_ui_hook) (void);
#ifdef __MSDOS__ #ifdef __MSDOS__
void void
@ -2939,7 +2939,7 @@ make_cleanup_free_command_lines (struct command_line **arg)
struct cmd_list_element * struct cmd_list_element *
add_info (name, fun, doc) add_info (name, fun, doc)
char *name; char *name;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
{ {
return add_cmd (name, no_class, fun, doc, &infolist); return add_cmd (name, no_class, fun, doc, &infolist);
@ -3013,7 +3013,7 @@ struct cmd_list_element *
add_com (name, class, fun, doc) add_com (name, class, fun, doc)
char *name; char *name;
enum command_class class; enum command_class class;
void (*fun) PARAMS ((char *, int)); void (*fun) (char *, int);
char *doc; char *doc;
{ {
return add_cmd (name, class, fun, doc, &cmdlist); return add_cmd (name, class, fun, doc, &cmdlist);

View file

@ -58,9 +58,9 @@
extern int info_verbose; extern int info_verbose;
extern void (*readline_begin_hook) PARAMS ((char *,...)); extern void (*readline_begin_hook) (char *, ...);
extern char *(*readline_hook) PARAMS ((char *)); extern char *(*readline_hook) (char *);
extern void (*readline_end_hook) PARAMS ((void)); extern void (*readline_end_hook) (void);
extern void x_command (char *, int); extern void x_command (char *, int);
extern int addressprint; /* Print machine addresses? */ extern int addressprint; /* Print machine addresses? */

View file

@ -115,11 +115,11 @@ extern unsigned long trace_running_p;
/* A hook used to notify the UI of tracepoint operations */ /* A hook used to notify the UI of tracepoint operations */
void (*create_tracepoint_hook) PARAMS ((struct tracepoint *)); void (*create_tracepoint_hook) (struct tracepoint *);
void (*delete_tracepoint_hook) PARAMS ((struct tracepoint *)); void (*delete_tracepoint_hook) (struct tracepoint *);
void (*modify_tracepoint_hook) PARAMS ((struct tracepoint *)); void (*modify_tracepoint_hook) (struct tracepoint *);
void (*trace_find_hook) PARAMS ((char *arg, int from_tty)); void (*trace_find_hook) (char *arg, int from_tty);
void (*trace_start_stop_hook) PARAMS ((int start, int from_tty)); void (*trace_start_stop_hook) (int start, int from_tty);
struct tracepoint *get_tracepoint_by_number (char **, int, int); struct tracepoint *get_tracepoint_by_number (char **, int, int);
int get_traceframe_number (void); int get_traceframe_number (void);

View file

@ -26,15 +26,15 @@
/* Opaque data type */ /* Opaque data type */
typedef char *Opaque; typedef char *Opaque;
typedef typedef
Opaque (*OpaqueFuncPtr) PARAMS ((va_list)); Opaque (*OpaqueFuncPtr) (va_list);
typedef char **OpaqueList; typedef char **OpaqueList;
typedef OpaqueList OpaquePtr; typedef OpaqueList OpaquePtr;
/* Generic function pointer */ /* Generic function pointer */
typedef void (*TuiVoidFuncPtr) PARAMS ((va_list)); typedef void (*TuiVoidFuncPtr) (va_list);
typedef int (*TuiIntFuncPtr) PARAMS ((va_list)); typedef int (*TuiIntFuncPtr) (va_list);
/* /*
typedef Opaque (*TuiOpaqueFuncPtr) PARAMS ((va_list)); typedef Opaque (*TuiOpaqueFuncPtr) (va_list);
*/ */
typedef OpaqueFuncPtr TuiOpaqueFuncPtr; typedef OpaqueFuncPtr TuiOpaqueFuncPtr;

View file

@ -112,7 +112,7 @@ void
tui_tputs (str, affcnt, putfunc) tui_tputs (str, affcnt, putfunc)
char *str; char *str;
int affcnt; int affcnt;
int (*putfunc) PARAMS ((int)); int (*putfunc) (int);
{ {
extern char *rl_prompt; /* the prompt string */ extern char *rl_prompt; /* the prompt string */

View file

@ -58,7 +58,7 @@
/* readline defines this. */ /* readline defines this. */
#undef savestring #undef savestring
void (*error_begin_hook) PARAMS ((void)); void (*error_begin_hook) (void);
/* Holds the last error message issued by gdb */ /* 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.*/ cmd_continuation. The new continuation will be added at the front.*/
void void
add_continuation (continuation_hook, arg_list) 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_arg *arg_list;
{ {
struct continuation *continuation_ptr; struct continuation *continuation_ptr;
@ -488,7 +488,7 @@ discard_all_continuations ()
intermediate_continuation. The new continuation will be added at the front.*/ intermediate_continuation. The new continuation will be added at the front.*/
void void
add_intermediate_continuation (continuation_hook, arg_list) 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_arg *arg_list;
{ {
struct continuation *continuation_ptr; struct continuation *continuation_ptr;
@ -1421,8 +1421,8 @@ static void printchar (int c, void (*do_fputs) (const char *, struct ui_file*),
static void static void
printchar (c, do_fputs, do_fprintf, stream, quoter) printchar (c, do_fputs, do_fprintf, stream, quoter)
int c; int c;
void (*do_fputs) PARAMS ((const char *, struct ui_file*)); void (*do_fputs) (const char *, struct ui_file *);
void (*do_fprintf) PARAMS ((struct ui_file*, const char *, ...)); void (*do_fprintf) (struct ui_file *, const char *, ...);
struct ui_file *stream; struct ui_file *stream;
int quoter; int quoter;
{ {

View file

@ -54,7 +54,7 @@ extern void nexti_command (char *, int);
extern void continue_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 */ /* Prototypes for local functions */
static int init_hidden_window (void); static int init_hidden_window (void);
@ -855,7 +855,7 @@ static void
do_gdb (cmd, str, func, count) do_gdb (cmd, str, func, count)
char *cmd; char *cmd;
char *str; char *str;
void (*func) PARAMS ((char *, int)); void (*func) (char *, int);
int count; int count;
{ {
ReplyMessage ((LRESULT) 1); ReplyMessage ((LRESULT) 1);

View file

@ -287,28 +287,28 @@ struct language_specific
enum varobj_languages language; enum varobj_languages language;
/* The number of children of PARENT. */ /* 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. */ /* 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. */ /* 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. */ /* 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. */ /* 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. */ /* 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? */ /* Is VAR editable? */
int (*variable_editable) PARAMS ((struct varobj * var)); int (*variable_editable) (struct varobj * var);
/* The current value of 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. */ /* Array of known source language routines. */

View file

@ -48,7 +48,7 @@
#include <unistd.h> #include <unistd.h>
/* The ui's event loop. */ /* 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 /* If we're not using the old Cygwin header file set, define the
following which never should have been in the generic Win32 API following which never should have been in the generic Win32 API

View file

@ -58,7 +58,7 @@
#include <time.h> #include <time.h>
/* The ui's event loop. */ /* 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 /* If we're not using the old Cygwin header file set, define the
following which never should have been in the generic Win32 API following which never should have been in the generic Win32 API

View file

@ -48,7 +48,7 @@
#include <unistd.h> #include <unistd.h>
/* The ui's event loop. */ /* 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 /* If we're not using the old Cygwin header file set, define the
following which never should have been in the generic Win32 API following which never should have been in the generic Win32 API

View file

@ -34,7 +34,7 @@
hook is initialized in by rs6000-nat.c. If not, it is currently left hook is initialized in by rs6000-nat.c. If not, it is currently left
NULL and never called. */ 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 #ifdef SOLIB_SYMBOLS_MANUAL

View file

@ -58,4 +58,4 @@ extern struct vmap *vmap;
/* Hook for symbol table relocation at runtime. */ /* Hook for symbol table relocation at runtime. */
extern void (*xcoff_relocate_symtab_hook) PARAMS ((unsigned int)); extern void (*xcoff_relocate_symtab_hook) (unsigned int);