From ae9d9b966041efceaa9a4a58bb00b230d38bb2c8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 14 Aug 2001 20:05:48 +0000 Subject: [PATCH] * top.c (SIGSETJMP): Protect env argument with parentheses. (SIGLONGJMP): Protect env argument with parentheses. --- gdb/ChangeLog | 5 +++++ gdb/top.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b363b4506c..c1567aa8040 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Christopher Faylor + + * top.c (SIGSETJMP): Protect env argument with parentheses. + (SIGLONGJMP): Protect env argument with parentheses. + 2001-08-11 Andrew Cagney * config/mn10300/mn10300.mt (TM_FILE): Delete. diff --git a/gdb/top.c b/gdb/top.c index 061bef87bf2..33a853b7d3d 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -299,12 +299,12 @@ NORETURN void (*error_hook) (void) ATTR_NORETURN; directly. */ #if defined(HAVE_SIGSETJMP) #define SIGJMP_BUF sigjmp_buf -#define SIGSETJMP(buf) sigsetjmp(buf, 1) -#define SIGLONGJMP(buf,val) siglongjmp(buf,val) +#define SIGSETJMP(buf) sigsetjmp((buf), 1) +#define SIGLONGJMP(buf,val) siglongjmp((buf), (val)) #else #define SIGJMP_BUF jmp_buf #define SIGSETJMP(buf) setjmp(buf) -#define SIGLONGJMP(buf,val) longjmp(buf,val) +#define SIGLONGJMP(buf,val) longjmp((buf), (val)) #endif /* Where to go for return_to_top_level. */ -- 2.30.2