summaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-14 22:59:36 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-14 22:59:36 +0000
commit37b92e85ff55f77061c247a7d3b6c60a657ec674 (patch)
tree4eb56b1ceb5326c31c63c4055c825c7f9c48570a /gdb/exceptions.h
parent3e0217fc7bd8de401a2692b7dfa7ff8db0a380f0 (diff)
downloadgdb-37b92e85ff55f77061c247a7d3b6c60a657ec674.tar.gz
2005-01-14 Andrew Cagney <cagney@gnu.org>
* exceptions.h (exception_fprintf): Declare. (exception_print): Drop pre_print parameter. * mi/mi-main.c (mi_execute_command): Update exception_print call. * cli/cli-interp.c (safe_execute_command): Update exception_print call. * remote.c (remote_open_1): Instead of passing an error prefix to catch_exceptions, use catch_exceptions and exception_fprintf. (remote_start_remote): Change return type to void. * breakpoint.c (insert_bp_location): Instead of passing an error prefix to catch_exceptions, use catch_exceptions and exception_fprintf. (insert_catchpoint): Change return type to void. (break_command_1): Update exception_print call. * exceptions.c (exception_fprintf): New function. (print_exception): New function. (exception_print): Use print_exception.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r--gdb/exceptions.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index 03318aef775..80c120d57ca 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -67,9 +67,11 @@ struct exception
extern const struct exception exception_none;
/* If E is an exception, print it's error message on the specified
- stream. */
-extern void exception_print (struct ui_file *file, const char *pre_print,
- struct exception e);
+ stream. for _fprintf, prefix the message with PREFIX... */
+extern void exception_print (struct ui_file *file, struct exception e);
+extern void exception_fprintf (struct ui_file *file, struct exception e,
+ const char *prefix,
+ ...) ATTR_FORMAT (printf, 3, 4);
/* Throw an exception (as described by "struct exception"). Will
execute a LONG JUMP to the inner most containing exception handler