aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-14 18:55:33 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-14 18:55:33 +0000
commit8a076db965ba49f891b959752db7c8bb0c524688 (patch)
tree6fc269cd6f5141e52b1f098a206ac3d9cf1782d7 /gdb/mi
parentbc8332bb44886d189fce38b812d6919a157af734 (diff)
downloadfsf-binutils-gdb-8a076db965ba49f891b959752db7c8bb0c524688.zip
fsf-binutils-gdb-8a076db965ba49f891b959752db7c8bb0c524688.tar.gz
fsf-binutils-gdb-8a076db965ba49f891b959752db7c8bb0c524688.tar.bz2
2005-01-13 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (mi_execute_command): Print the exception. * cli/cli-interp.c (safe_execute_command): Print the exception. * exceptions.h (exception_print): Declare. * exceptions.c (struct catcher): Add field print_message. (catcher_init): Add parameter print_message, store in the catcher struct. (print_and_throw): Only print the message when print_message. (catch_exceptions_with_msg, catch_errors): Pass print_message=1 to catcher_init. (catch_exception): Pass print_message=0 to catcher_init.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 7df1569..bd45cd5 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1156,6 +1156,7 @@ mi_execute_command (char *cmd, int from_tty)
args.command = command;
result = catch_exception (uiout, captured_mi_execute_command, &args,
RETURN_MASK_ALL);
+ exception_print (gdb_stderr, NULL, result);
if (args.action == EXECUTE_COMMAND_SUPRESS_PROMPT)
{