1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-29 18:27:37 +01:00

If we have it, include "config.h".

If we have it, include <ia64intrin.h>
(handler): Add support for ECC.

(Logical change 1.68)
This commit is contained in:
mostang.com!davidm 2003-03-27 04:29:07 +00:00
parent 2a5ff2db57
commit 43d0e03dc6

View file

@ -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