diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2001-08-14 20:24:39 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2001-08-14 20:24:39 +0000 |
commit | a8f455b429f9a6d8b6b416e5c130be3af55f2ee3 (patch) | |
tree | e7a47fbd332aa65d408a1502891a8f6de690e798 | |
parent | bc4f6c6bbbec6f3f6f3b7b29f140c0db4ebd4d6f (diff) | |
download | gdb-a8f455b429f9a6d8b6b416e5c130be3af55f2ee3.tar.gz |
* top.c (SIGSETJMP): Protect env argument with parentheses.
(SIGLONGJMP): Protect env argument with parentheses.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/top.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 41c1e21c391..f55d533e07d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Christopher Faylor <cgf@cygnus.com> + + * top.c (SIGSETJMP): Protect env argument with parentheses. + (SIGLONGJMP): Protect env argument with parentheses. + 2001-08-10 Orjan Friberg <orjanf@axis.com> * remote.c (read_frame): Correct off-by-one error in condition. diff --git a/gdb/top.c b/gdb/top.c index 4149719c334..c94536119e0 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -298,12 +298,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. */ |