mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-28 18:07:37 +01:00
On FreeBSD, the structure is called prstatus.
This commit is contained in:
parent
dc9be1a97a
commit
cc7c74e691
2 changed files with 12 additions and 0 deletions
|
@ -55,6 +55,12 @@ AC_CHECK_TYPES([sighandler_t], [], [],
|
||||||
# include <signal.h>
|
# include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
AC_CHECK_TYPES([struct elf_prstatus, struct prstatus], [], [],
|
||||||
|
[$ac_includes_default
|
||||||
|
#if HAVE_SYS_PROCFS_H
|
||||||
|
# include <sys/procfs.h>
|
||||||
|
#endif
|
||||||
|
])
|
||||||
|
|
||||||
AC_CHECK_DECLS([PTRACE_POKEUSER, PTRACE_POKEDATA,
|
AC_CHECK_DECLS([PTRACE_POKEUSER, PTRACE_POKEDATA,
|
||||||
PTRACE_TRACEME, PTRACE_CONT, PTRACE_SINGLESTEP,
|
PTRACE_TRACEME, PTRACE_CONT, PTRACE_SINGLESTEP,
|
||||||
|
|
|
@ -83,7 +83,13 @@ struct UCD_info
|
||||||
coredump_phdr_t *phdrs; /* array, allocated */
|
coredump_phdr_t *phdrs; /* array, allocated */
|
||||||
unsigned phdrs_count;
|
unsigned phdrs_count;
|
||||||
void *note_phdr; /* allocated or NULL */
|
void *note_phdr; /* allocated or NULL */
|
||||||
|
#if defined(HAVE_STRUCT_ELF_PRSTATUS)
|
||||||
struct elf_prstatus *prstatus; /* points inside note_phdr */
|
struct elf_prstatus *prstatus; /* points inside note_phdr */
|
||||||
|
#elif defined(HAVE_STRUCT_PRSTATUS)
|
||||||
|
struct prstatus *prstatus; /* points inside note_phdr */
|
||||||
|
#else
|
||||||
|
struct non_existent *prstatus;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct elf_dyn_info edi;
|
struct elf_dyn_info edi;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue