]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* top.c (SIGSETJMP): Protect env argument with parentheses.
authorChristopher Faylor <me+cygwin@cgf.cx>
Tue, 14 Aug 2001 20:24:39 +0000 (20:24 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Tue, 14 Aug 2001 20:24:39 +0000 (20:24 +0000)
(SIGLONGJMP): Protect env argument with parentheses.

gdb/ChangeLog
gdb/top.c

index 41c1e21c3912fb044e20a38d913f6700a2004b30..f55d533e07d67cac3a2ff03caf39a1afc7530db3 100644 (file)
@@ -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.
index 4149719c334760539b7eb58afe5f0fdff1373f8f..c94536119e008853dc201c97033dd03ff3b2cd95 100644 (file)
--- 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.  */