diff options
Diffstat (limited to 'gdb/gdbsupport/gdb_setjmp.h')
-rw-r--r-- | gdb/gdbsupport/gdb_setjmp.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/gdbsupport/gdb_setjmp.h b/gdb/gdbsupport/gdb_setjmp.h index d4ebbfa..4995970 100644 --- a/gdb/gdbsupport/gdb_setjmp.h +++ b/gdb/gdbsupport/gdb_setjmp.h @@ -23,11 +23,13 @@ #ifdef HAVE_SIGSETJMP #define SIGJMP_BUF sigjmp_buf -#define SIGSETJMP(buf) sigsetjmp((buf), 1) +#define SIGSETJMP(buf,val) sigsetjmp((buf), val) #define SIGLONGJMP(buf,val) siglongjmp((buf), (val)) #else #define SIGJMP_BUF jmp_buf -#define SIGSETJMP(buf) setjmp(buf) +/* We ignore val here because that's safer and avoids having to check + whether _setjmp exists. */ +#define SIGSETJMP(buf,val) setjmp(buf) #define SIGLONGJMP(buf,val) longjmp((buf), (val)) #endif |