]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
2005-01-13 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 14 Jan 2005 18:55:33 +0000 (18:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 14 Jan 2005 18:55:33 +0000 (18:55 +0000)
commit8a076db965ba49f891b959752db7c8bb0c524688
tree6fc269cd6f5141e52b1f098a206ac3d9cf1782d7
parentbc8332bb44886d189fce38b812d6919a157af734
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.
gdb/ChangeLog
gdb/cli/cli-interp.c
gdb/exceptions.c
gdb/exceptions.h
gdb/mi/mi-main.c