diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2001-08-14 20:05:48 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2001-08-14 20:05:48 +0000 |
commit | ae9d9b966041efceaa9a4a58bb00b230d38bb2c8 (patch) | |
tree | 241994c56ed377405efffc6eb62e87264a8094a8 /gdb/top.c | |
parent | c68012fb328c6cace0319750ceffcb5fe3ebbd77 (diff) | |
download | gdb-ae9d9b966041efceaa9a4a58bb00b230d38bb2c8.zip gdb-ae9d9b966041efceaa9a4a58bb00b230d38bb2c8.tar.gz gdb-ae9d9b966041efceaa9a4a58bb00b230d38bb2c8.tar.bz2 |
* top.c (SIGSETJMP): Protect env argument with parentheses.
(SIGLONGJMP): Protect env argument with parentheses.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. */ |