diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-10-17 16:44:01 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-10-17 16:51:32 +0200 |
commit | a6a3dabc9e6b1cfc2f4047d2d09efe634affb120 (patch) | |
tree | 89d75773c681bc0e5ade094e6ffc887fa05f36ee /distrib | |
parent | fff02548d237655dea39f108364d7ebe6d0e122d (diff) | |
download | haskell-a6a3dabc9e6b1cfc2f4047d2d09efe634affb120.tar.gz |
Libdw: Add libdw-based stack unwinding
This adds basic support to the RTS for DWARF-assisted unwinding of the
Haskell and C stack via libdw. This only adds the infrastructure;
consumers of this functionality will be introduced in future diffs.
Currently we are carrying the initial register collection code in
Libdw.c but this will eventually make its way upstream to libdw.
Test Plan: See future patches
Reviewers: Tarrasch, scpmw, austin, simonmar
Reviewed By: austin, simonmar
Subscribers: simonmar, thomie, erikd
Differential Revision: https://phabricator.haskell.org/D1196
GHC Trac Issues: #10656
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/configure.ac.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in index 0fcd869491..0f68a52358 100644 --- a/distrib/configure.ac.in +++ b/distrib/configure.ac.in @@ -91,6 +91,11 @@ dnl -------------------------------------------------------------- FIND_LD([LdCmd]) AC_SUBST([LdCmd]) +dnl ** Have libdw? +dnl -------------------------------------------------------------- +AC_CHECK_LIB(dw, dwfl_begin, [HaveLibdw=YES], [HaveLibdw=NO]) +AC_SUBST(HaveLibdw) + FP_GCC_VERSION AC_PROG_CPP |