diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 1998-04-13 21:54:22 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 1998-04-13 21:54:22 +0000 |
commit | e6e9507d63419640b974263902fafb1564270ce9 (patch) | |
tree | 3ac5b570ded1f373692567d9ea3175badde40e6b /gdb/top.c | |
parent | 8387d6dfd396b90f8b3393488099b71622a8eaad (diff) | |
download | gdb-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |