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]

[obish] Deprecate more ..._hooks


Flushed these out - they were hidden by having their extern declaration hidden in a .c file :-( Code should instead use an observer.

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

	* defs.h (deprecated_pre_add_symbol_hook)
	(deprecated_post_add_symbol_hook): Deprecated.
	* symfile.c (symbol_file_add_with_addrs_or_offsets) 
	(symbol_file_add_with_addrs_or_offsets): Update references.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.148
diff -p -u -r1.148 defs.h
--- defs.h	24 Jun 2004 21:51:49 -0000	1.148
+++ defs.h	24 Jun 2004 22:08:31 -0000
@@ -1217,8 +1217,8 @@ 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 (*deprecated_pre_add_symbol_hook) (const char *);
+extern void (*deprecated_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);
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.132
diff -p -u -r1.132 symfile.c
--- symfile.c	15 Jun 2004 01:04:20 -0000	1.132
+++ symfile.c	24 Jun 2004 22:08:31 -0000
@@ -66,8 +66,8 @@ void (*deprecated_show_load_progress) (c
 			    unsigned long section_size,
 			    unsigned long total_sent,
 			    unsigned long total_size);
-void (*pre_add_symbol_hook) (const char *);
-void (*post_add_symbol_hook) (void);
+void (*deprecated_pre_add_symbol_hook) (const char *);
+void (*deprecated_post_add_symbol_hook) (void);
 void (*deprecated_target_new_objfile_hook) (struct objfile *);
 
 static void clear_symtab_users_cleanup (void *ignore);
@@ -805,8 +805,8 @@ symbol_file_add_with_addrs_or_offsets (b
      performed, or need to read an unmapped symbol table. */
   if (from_tty || info_verbose)
     {
-      if (pre_add_symbol_hook)
-	pre_add_symbol_hook (name);
+      if (deprecated_pre_add_symbol_hook)
+	deprecated_pre_add_symbol_hook (name);
       else
 	{
 	  printf_unfiltered ("Reading symbols from %s...", name);
@@ -871,8 +871,8 @@ symbol_file_add_with_addrs_or_offsets (b
 
   if (from_tty || info_verbose)
     {
-      if (post_add_symbol_hook)
-	post_add_symbol_hook ();
+      if (deprecated_post_add_symbol_hook)
+	deprecated_post_add_symbol_hook ();
       else
 	{
 	  printf_unfiltered ("done.\n");

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