mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-04-01 23:19:07 +08:00
libbacktrace: load Windows modules
Patch from Björn Schäpers <bjoern@hazardy.de>. * configure.ac: Checked for tlhelp32.h * pecoff.c: Include <tlhelp32.h> if available. (backtrace_initialize): Use tlhelp32 api for a snapshot to detect loaded modules. (coff_add): New argument for the module handle of the file, to get the base address. * configure, config.h.in: Regenerate.
This commit is contained in:
15
configure
vendored
15
configure
vendored
@@ -12454,6 +12454,21 @@ fi
|
||||
|
||||
done
|
||||
|
||||
for ac_header in tlhelp32.h
|
||||
do :
|
||||
ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
"
|
||||
if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_TLHELP32_H 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
# Check for the fcntl function.
|
||||
if test -n "${with_target_subdir}"; then
|
||||
|
||||
Reference in New Issue
Block a user