From: Roland McGrath Date: Mon, 27 Mar 1995 09:27:34 +0000 (+0000) Subject: (_JMPBUF_UNWINDS): New macro. X-Git-Tag: upstream/2.30~10627^2~3935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2e444e579a4963e7212cd4fa04863640e2652039;p=external%2Fglibc.git (_JMPBUF_UNWINDS): New macro. --- diff --git a/sysdeps/mips/jmp_buf.h b/sysdeps/mips/jmp_buf.h index eed47dc..102a019 100644 --- a/sysdeps/mips/jmp_buf.h +++ b/sysdeps/mips/jmp_buf.h @@ -1,5 +1,5 @@ -/* Define the machine-dependent type `jmp_buf'. Mips version. - Copyright (C) 1992, 1993 Free Software Foundation, Inc. +/* Define the machine-dependent type `jmp_buf'. MIPS version. + Copyright (C) 1992, 1993, 1995 Free Software Foundation, Inc. Contributed by Brendan Kehoe (brendan@zen.org). The GNU C Library is free software; you can redistribute it and/or @@ -45,3 +45,9 @@ typedef struct /* Offset to the program counter in `jmp_buf'. */ #define JB_PC 0 #endif + + +/* Test if longjmp to JMPBUF would unwind the frame + containing a local variable at ADDRESS. */ +#define _JMPBUF_UNWINDS(jmpbuf, address) \ + ((__ptr_t) (address) < (jmpbuf)[0].__sp)