aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>1998-04-13 21:54:22 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>1998-04-13 21:54:22 +0000
commite6e9507d63419640b974263902fafb1564270ce9 (patch)
tree3ac5b570ded1f373692567d9ea3175badde40e6b /gdb/top.c
parent8387d6dfd396b90f8b3393488099b71622a8eaad (diff)
downloadgdb-e6e9507d63419640b974263902fafb1564270ce9.zip
gdb-e6e9507d63419640b974263902fafb1564270ce9.tar.gz
gdb-e6e9507d63419640b974263902fafb1564270ce9.tar.bz2
Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* utils.c: (warning) added call to warning_hook * source.c: (find_source_lines) modified to call warning in case of source vs. executable time stamp mismatch. Simplified object file check. Initialized mtime to 0. * defs.h: added warning_hook prototype * top.c: added warning_hook prototype. * gdbtk.c: (perror_with_name_wrapper) new function to call perror_with_name safely. (gdb_loadfile) added source vs. executable time stamp check. (gdbtk_warning) new function to pass a warning message to the gui. (gdbtk_ignorable_warning) new function to pass a warning to the gui. Used only for the src. vs. exec check. (gdbtk_init) added warning_hook added include <sys/stat.h>
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 100b8fc..248a44d 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -403,6 +403,10 @@ void (*print_frame_info_listing_hook) PARAMS ((struct symtab *s, int line,
int (*query_hook) PARAMS ((const char *, va_list));
+/* Replaces most of warning. */
+
+void (*warning_hook) PARAMS ((const char *, va_list));
+
/* Called from gdb_flush to flush output. */
void (*flush_hook) PARAMS ((FILE *stream));