From: Corinna Vinschen Date: Wed, 9 Mar 2005 17:52:54 +0000 (+0000) Subject: * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe. X-Git-Tag: csl-arm-20050325-branchpoint~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d19ca47178a5953f050303ae8279f883c5593cb;p=external%2Fbinutils.git * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe. (plus a tiny ChangeLog fix) --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3a1a80..3da7832 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,11 @@ -2004-03-09 Joel Brobecker +2005-03-09 Corinna Vinschen - * dwarf2read.c (dwarf_decode_lines): Use the complete filename - when creating include psymtabs. + * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe. + +2005-03-09 Joel Brobecker + + * dwarf2read.c (dwarf_decode_lines): Use the complete filename + when creating include psymtabs. 2005-03-08 Mark Mitchell 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* */