From: Andrew Cagney Date: Thu, 24 Jun 2004 22:09:34 +0000 (+0000) Subject: 2004-06-24 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=769d7dc4f11735bfe220f4d86934e5fdf9c19630;p=binutils-gdb.git 2004-06-24 Andrew Cagney * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5d170e9d501..22b755a7d69 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2004-06-24 Andrew Cagney + + * 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. + 2004-06-24 Andrew Cagney * defs.h (post_add_symbol_hook, pre_add_symbol_hook) diff --git a/gdb/defs.h b/gdb/defs.h index ce9ead352a3..9e787e2c7dd 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -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); diff --git a/gdb/symfile.c b/gdb/symfile.c index a98c188ff84..f3108a3c70e 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -66,8 +66,8 @@ void (*deprecated_show_load_progress) (const char *section, 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 (bfd *abfd, int from_tty, 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 (bfd *abfd, int from_tty, 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");