diff options
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r-- | gdb/exceptions.h | 11 |
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* */ |