mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 00:27:39 +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>
|
||||
#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,
|
||||
PTRACE_TRACEME, PTRACE_CONT, PTRACE_SINGLESTEP,
|
||||
|
|
|
@ -83,7 +83,13 @@ struct UCD_info
|
|||
coredump_phdr_t *phdrs; /* array, allocated */
|
||||
unsigned phdrs_count;
|
||||
void *note_phdr; /* allocated or NULL */
|
||||
#if defined(HAVE_STRUCT_ELF_PRSTATUS)
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue