mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Eliminate PARAMS from function pointer declarations.
This commit is contained in:
parent
450005e7c2
commit
507f3c78fb
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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"). */
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 ()
|
||||
|
@ -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 ()
|
||||
|
@ -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. */
|
||||
|
@ -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++)
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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.");
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
11
gdb/remote.c
11
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
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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 **);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
131
gdb/target.h
131
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) \
|
||||
|
54
gdb/top.c
54
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);
|
||||
|
@ -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? */
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
10
gdb/utils.c
10
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;
|
||||
{
|
||||
|
@ -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);
|
||||
|
16
gdb/varobj.c
16
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. */
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user