mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 00:57:39 +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:
parent
2a5ff2db57
commit
43d0e03dc6
1 changed files with 12 additions and 0 deletions
|
@ -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. */
|
/* Verify that unw_resume() restores the signal mask at proper time. */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libunwind.h>
|
#include <libunwind.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_IA64INTRIN_H
|
||||||
|
# include <ia64intrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define panic(args...) \
|
#define panic(args...) \
|
||||||
do { fprintf (stderr, args); ++nerrors; } while (0)
|
do { fprintf (stderr, args); ++nerrors; } while (0)
|
||||||
|
|
||||||
|
@ -47,7 +55,11 @@ handler (int sig)
|
||||||
char foo;
|
char foo;
|
||||||
|
|
||||||
#if UNW_TARGET_IA64
|
#if UNW_TARGET_IA64
|
||||||
|
# ifdef __ECC
|
||||||
|
void *bsp = (void *) __getReg(_IA64_REG_AR_BSP);
|
||||||
|
# else
|
||||||
void *bsp = __builtin_ia64_bsp ();
|
void *bsp = __builtin_ia64_bsp ();
|
||||||
|
#endif
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf ("bsp = %p\n", bsp);
|
printf ("bsp = %p\n", bsp);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue