This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Move some externs to defs.h


FYI, committed.

Andrew
2004-06-24  Andrew Cagney  <cagney@gnu.org>

	* 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.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.147
diff -p -u -r1.147 defs.h
--- defs.h	10 Jun 2004 20:05:43 -0000	1.147
+++ defs.h	24 Jun 2004 21:51:08 -0000
@@ -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,
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.37
diff -p -u -r1.37 remote-sim.c
--- remote-sim.c	25 May 2004 14:58:30 -0000	1.37
+++ remote-sim.c	24 Jun 2004 21:51:08 -0000
@@ -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);
Index: ser-tcp.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-tcp.c,v
retrieving revision 1.13
diff -p -u -r1.13 ser-tcp.c
--- ser-tcp.c	13 May 2003 19:40:11 -0000	1.13
+++ ser-tcp.c	24 Jun 2004 21:51:08 -0000
@@ -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 */
Index: ser-unix.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-unix.c,v
retrieving revision 1.18
diff -p -u -r1.18 ser-unix.c
--- ser-unix.c	9 Jan 2004 20:42:10 -0000	1.18
+++ ser-unix.c	24 Jun 2004 21:51:08 -0000
@@ -99,8 +99,6 @@ static void reschedule (struct serial *s
 
 void _initialize_ser_hardwire (void);
 
-extern int (*ui_loop_hook) (int);
-
 /* Open up a real live device for serial I/O */
 
 static int
Index: v850ice.c
===================================================================
RCS file: /cvs/src/src/gdb/v850ice.c,v
retrieving revision 1.18
diff -p -u -r1.18 v850ice.c
--- v850ice.c	2 Oct 2003 20:28:30 -0000	1.18
+++ v850ice.c	24 Jun 2004 21:51:08 -0000
@@ -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);
 
Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.90
diff -p -u -r1.90 win32-nat.c
--- win32-nat.c	15 Jun 2004 01:04:20 -0000	1.90
+++ win32-nat.c	24 Jun 2004 21:51:08 -0000
@@ -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... */
Index: wince.c
===================================================================
RCS file: /cvs/src/src/gdb/wince.c,v
retrieving revision 1.27
diff -p -u -r1.27 wince.c
--- wince.c	25 May 2004 14:58:31 -0000	1.27
+++ wince.c	24 Jun 2004 21:51:08 -0000
@@ -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... */
Index: rdi-share/ardi.c
===================================================================
RCS file: /cvs/src/src/gdb/rdi-share/ardi.c,v
retrieving revision 1.3
diff -p -u -r1.3 ardi.c
--- rdi-share/ardi.c	6 Feb 2003 17:58:01 -0000	1.3
+++ rdi-share/ardi.c	24 Jun 2004 21:51:09 -0000
@@ -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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]