diff options
author | mostang.com!davidm <mostang.com!davidm> | 2003-03-27 04:29:07 +0000 |
---|---|---|
committer | mostang.com!davidm <mostang.com!davidm> | 2003-03-27 04:29:07 +0000 |
commit | 43d0e03dc65d98357f4053fdc45b87897c06292a (patch) | |
tree | 22db68aad9d567971bd8c2d7571f43a2f160609c /tests/Gtest-resume-sig.c | |
parent | 2a5ff2db57001bc436d9e3d4b55889fb57399e03 (diff) | |
download | libunwind-43d0e03dc65d98357f4053fdc45b87897c06292a.tar.gz |
If we have it, include "config.h".
If we have it, include <ia64intrin.h>
(handler): Add support for ECC.
(Logical change 1.68)
Diffstat (limited to 'tests/Gtest-resume-sig.c')
-rw-r--r-- | tests/Gtest-resume-sig.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/Gtest-resume-sig.c b/tests/Gtest-resume-sig.c index 60cae7a1..c6bda67a 100644 --- a/tests/Gtest-resume-sig.c +++ b/tests/Gtest-resume-sig.c @@ -23,12 +23,20 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Verify that unw_resume() restores the signal mask at proper time. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include <libunwind.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#ifdef HAVE_IA64INTRIN_H +# include <ia64intrin.h> +#endif + #define panic(args...) \ do { fprintf (stderr, args); ++nerrors; } while (0) @@ -47,7 +55,11 @@ handler (int sig) char foo; #if UNW_TARGET_IA64 +# ifdef __ECC + void *bsp = (void *) __getReg(_IA64_REG_AR_BSP); +# else void *bsp = __builtin_ia64_bsp (); +#endif if (verbose) printf ("bsp = %p\n", bsp); #endif |