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:
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. */
|
||||
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue