OSDN Git Service

2005-01-13 Andrew Cagney <cagney@gnu.org>
authorcagney <cagney>
Fri, 14 Jan 2005 18:55:19 +0000 (18:55 +0000)
committercagney <cagney>
Fri, 14 Jan 2005 18:55:19 +0000 (18:55 +0000)
* 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

index b77c67f..b0a3a4e 100644 (file)
@@ -1,5 +1,16 @@
 2005-01-14  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.
+
        * varobj.c (varobj_create): Add missing \n.
 
 2005-01-13  Michael Snyder  <msnyder@redhat.com>