OSDN Git Service

2005-01-13 Andrew Cagney <cagney@gnu.org>
authorcagney <cagney>
Fri, 14 Jan 2005 18:55:30 +0000 (18:55 +0000)
committercagney <cagney>
Fri, 14 Jan 2005 18:55:30 +0000 (18:55 +0000)
commit71ce0fd24f04ad620bdb58a6084ced1d3e255549
tree1e2ca53617682866a5b1276efcdb6d97bec1abf9
parentd946d5932f415a118e4fa7a15ba8f2cda50da779
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/cli/cli-interp.c
gdb/exceptions.c
gdb/exceptions.h
gdb/mi/mi-main.c