aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-03-09 17:52:54 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-03-09 17:52:54 +0000
commit8d19ca47178a5953f050303ae8279f883c5593cb (patch)
tree6e2d02e5116376d6bd4d875051da392d757bae03 /gdb/exceptions.h
parent220abb21d1516ccb237389002b6c302c3295d8a0 (diff)
downloadgdb-8d19ca47178a5953f050303ae8279f883c5593cb.zip
gdb-8d19ca47178a5953f050303ae8279f883c5593cb.tar.gz
gdb-8d19ca47178a5953f050303ae8279f883c5593cb.tar.bz2
* exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
(plus a tiny ChangeLog fix)
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r--gdb/exceptions.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h
index a47742a..c07289b 100644
--- a/gdb/exceptions.h
+++ b/gdb/exceptions.h
@@ -115,10 +115,13 @@ int exceptions_state_mc_action_iter_1 (void);
*/
#define TRY_CATCH(EXCEPTION,MASK) \
- for (EXCEPTIONS_SIGSETJMP \
- (*exceptions_state_mc_init (uiout, &(EXCEPTION), (MASK))); \
- exceptions_state_mc_action_iter (); ) \
- while (exceptions_state_mc_action_iter_1 ())
+ { \
+ EXCEPTIONS_SIGJMP_BUF *buf = \
+ exceptions_state_mc_init (uiout, &(EXCEPTION), (MASK)); \
+ EXCEPTIONS_SIGSETJMP (*buf); \
+ } \
+ while (exceptions_state_mc_action_iter ()) \
+ while (exceptions_state_mc_action_iter_1 ())
/* *INDENT-ON* */