aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-11-05 20:32:04 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-11-05 20:32:04 +0000
commitd75e3c94b3e236ab6aadcad497264f32b48c921e (patch)
treeae41749e48fd6dd60a8caa409f089fc44caafc96 /gdb/defs.h
parent98f276a08832a7fb1ee2707a6e4a3e44d1d4b349 (diff)
downloadgdb-d75e3c94b3e236ab6aadcad497264f32b48c921e.zip
gdb-d75e3c94b3e236ab6aadcad497264f32b48c921e.tar.gz
gdb-d75e3c94b3e236ab6aadcad497264f32b48c921e.tar.bz2
2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
* defs.h (fatal, vfatal): New function prototypes. * stack.c (backtrace_command_stub): Stub to call backtrace_command_1 via catch_errors. (backtrace_command): Change to call backtrace_command_stub via catch_errors instead of calling backtrace_command_1 directly. (backtrace_full_command): Ditto. * utils.c (error_stream_1): New static function. (verror): Change to call error_stream_1 instead of error_stream. (error_stream): Call error_stream_1 with RETURN_ERROR argument. (vfatal, fatal): New functions.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index fd96665..a652fce 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -911,6 +911,10 @@ extern char *error_last_message (void);
/* Output arbitrary error message. */
extern void error_output_message (char *pre_print, char *msg);
+extern NORETURN void vfatal (const char *fmt, va_list ap) ATTR_NORETURN;
+
+extern NORETURN void fatal (const char *fmt, ...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2);
+
extern NORETURN void internal_verror (const char *file, int line,
const char *, va_list ap) ATTR_NORETURN;