From 11c949aaae4b4cc30283a917133a485800514ecb Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 24 Jun 2004 21:51:49 +0000 Subject: [PATCH] 2004-06-24 Andrew Cagney * defs.h (post_add_symbol_hook, pre_add_symbol_hook) (ui_loop_hook, selected_frame_level_changed_hook): Declare. * wince.c (ui_loop_hook): Delete extern declaration. * win32-nat.c (ui_loop_hook): Delete extern declaration.. * v850ice.c (ui_loop_hook): Delete extern declaration.. * ser-unix.c (ui_loop_hook): Delete extern declaration.. * ser-tcp.c (ui_loop_hook): Delete extern declaration.. * remote-sim.c (ui_loop_hook): Delete extern declaration.. * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern. ui_loop_hook declaration. --- gdb/ChangeLog | 13 +++++++++++++ gdb/defs.h | 4 ++++ gdb/rdi-share/ardi.c | 1 - gdb/remote-sim.c | 2 -- gdb/ser-tcp.c | 1 - gdb/ser-unix.c | 2 -- gdb/v850ice.c | 2 -- gdb/win32-nat.c | 3 --- gdb/wince.c | 3 --- gdb/windows-nat.c | 3 --- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8997876efa..5d170e9d50 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +2004-06-24 Andrew Cagney + + * defs.h (post_add_symbol_hook, pre_add_symbol_hook) + (ui_loop_hook, selected_frame_level_changed_hook): Declare. + * wince.c (ui_loop_hook): Delete extern declaration. + * win32-nat.c (ui_loop_hook): Delete extern declaration.. + * v850ice.c (ui_loop_hook): Delete extern declaration.. + * ser-unix.c (ui_loop_hook): Delete extern declaration.. + * ser-tcp.c (ui_loop_hook): Delete extern declaration.. + * remote-sim.c (ui_loop_hook): Delete extern declaration.. + * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern. + ui_loop_hook declaration. + 2004-06-24 Andrew Cagney * objfiles.h (struct entry_info): Delete entry_func_lowpc and diff --git a/gdb/defs.h b/gdb/defs.h index c6e3ec36ca..ce9ead352a 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -1217,6 +1217,10 @@ struct cmd_list_element; event-loop) be enabled? */ extern int event_loop_p; +extern void (*pre_add_symbol_hook) (const char *); +extern void (*post_add_symbol_hook) (void); +extern void (*selected_frame_level_changed_hook) (int); +extern int (*ui_loop_hook) (int signo); extern void (*deprecated_init_ui_hook) (char *argv0); extern void (*deprecated_command_loop_hook) (void); extern void (*deprecated_show_load_progress) (const char *section, diff --git a/gdb/rdi-share/ardi.c b/gdb/rdi-share/ardi.c index 3d176694c0..d7092ddcc7 100644 --- a/gdb/rdi-share/ardi.c +++ b/gdb/rdi-share/ardi.c @@ -1353,7 +1353,6 @@ void angel_RDI_stop_request(void) static int angel_RDI_ExecuteOrStep(PointHandle *handle, word type, unsigned ninstr) { - extern int (*ui_loop_hook) (int); int err; adp_stopped_struct stopped_info; void* stateptr = (void *)&stopped_info; diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index a40723025a..e058311a73 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -48,8 +48,6 @@ extern void _initialize_remote_sim (void); -extern int (*ui_loop_hook) (int signo); - static void dump_mem (char *buf, int len); static void init_callbacks (void); diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index a9a87143cb..21d84768d9 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -44,7 +44,6 @@ static int net_open (struct serial *scb, const char *name); static void net_close (struct serial *scb); -extern int (*ui_loop_hook) (int); void _initialize_ser_tcp (void); /* seconds to wait for connect */ diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 38b6716d2e..4b48f409a9 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -99,8 +99,6 @@ static void reschedule (struct serial *scb); void _initialize_ser_hardwire (void); -extern int (*ui_loop_hook) (int); - /* Open up a real live device for serial I/O */ static int diff --git a/gdb/v850ice.c b/gdb/v850ice.c index 9f516a32d9..c36e7564e2 100644 --- a/gdb/v850ice.c +++ b/gdb/v850ice.c @@ -50,8 +50,6 @@ struct MessageIO /* Prototypes for functions located in other files */ extern void break_command (char *, int); -extern int (*ui_loop_hook) (int); - /* Prototypes for local functions */ static int init_hidden_window (void); diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 27691f0672..1d89f4af76 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -56,9 +56,6 @@ #include "i386-tdep.h" #include "i387-tdep.h" -/* The ui's event loop. */ -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 headers in the first place since they were our own invention... */ diff --git a/gdb/wince.c b/gdb/wince.c index d1dc4bc90f..1b883d6dc6 100644 --- a/gdb/wince.c +++ b/gdb/wince.c @@ -60,9 +60,6 @@ #include "mips-tdep.h" #endif -/* The ui's event loop. */ -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 headers in the first place since they were our own invention... */ diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 27691f0672..1d89f4af76 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -56,9 +56,6 @@ #include "i386-tdep.h" #include "i387-tdep.h" -/* The ui's event loop. */ -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 headers in the first place since they were our own invention... */ -- 2.34.1