mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-05 01:09:27 +01:00
PT_CONTINUE.
This commit is contained in:
parent
d4a4ddd23d
commit
78cb28b4a6
2 changed files with 17 additions and 1 deletions
14
configure.in
14
configure.in
|
@ -66,6 +66,13 @@ AC_CHECK_DECLS(PTRACE_POKEDATA, [], [],
|
||||||
#endif
|
#endif
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
])
|
])
|
||||||
|
AC_CHECK_DECLS(PTRACE_CONT, [], [],
|
||||||
|
[$ac_includes_default
|
||||||
|
#if HAVE_SYS_TYPES_H
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/ptrace.h>
|
||||||
|
])
|
||||||
AC_CHECK_DECLS(PT_IO, [], [],
|
AC_CHECK_DECLS(PT_IO, [], [],
|
||||||
[$ac_includes_default
|
[$ac_includes_default
|
||||||
#if HAVE_SYS_TYPES_H
|
#if HAVE_SYS_TYPES_H
|
||||||
|
@ -87,6 +94,13 @@ AC_CHECK_DECLS(PT_GETFPREGS, [], [],
|
||||||
#endif
|
#endif
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
])
|
])
|
||||||
|
AC_CHECK_DECLS(PT_CONTINUE, [], [],
|
||||||
|
[$ac_includes_default
|
||||||
|
#if HAVE_SYS_TYPES_H
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/ptrace.h>
|
||||||
|
])
|
||||||
|
|
||||||
dnl Checks for library functions.
|
dnl Checks for library functions.
|
||||||
AC_FUNC_MEMCMP
|
AC_FUNC_MEMCMP
|
||||||
|
|
|
@ -32,7 +32,9 @@ _UPT_resume (unw_addr_space_t as, unw_cursor_t *c, void *arg)
|
||||||
|
|
||||||
#ifdef HAVE_TTRACE
|
#ifdef HAVE_TTRACE
|
||||||
# warning No support for ttrace() yet.
|
# warning No support for ttrace() yet.
|
||||||
#else
|
#elif HAVE_DECL_PTRACE_CONT
|
||||||
return ptrace (PTRACE_CONT, ui->pid, 0, 0);
|
return ptrace (PTRACE_CONT, ui->pid, 0, 0);
|
||||||
|
#elif HAVE_DECL_PT_CONTINUE
|
||||||
|
return ptrace(PT_CONTINUE, ui->pid, (caddr_t)1, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue