summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-11 18:41:07 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-11 20:47:28 -0400
commit0762e42f1c0731c98425010a106230c563c6e563 (patch)
tree4c366a431805d7b617cf9b96fe502d29b0983af0 /util.h
parent747b6130a9063e3d9656d6f06910fa7f17e1f986 (diff)
downloadperl-0762e42f1c0731c98425010a106230c563c6e563.tar.gz
C backtrace tweaks.
Rename the environment variable that triggers the backtrace before warns and croaks as PERL_USE_C_BACKTRACE_ON_ERROR (and correspondingly, the define as USE_C_BACKTRACE_ON_ERROR). Pod cleanups and updates, and move the needed #includes from perl.h to util.c since that's the only place where they are needed.
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/util.h b/util.h
index 57a3ad0b65..736f978edf 100644
--- a/util.h
+++ b/util.h
@@ -121,6 +121,12 @@ typedef struct {
* output - quite disgusting. And that won't work if the
* Developer Tools isn't installed. */
+ /* FreeBSD notes: execinfo.h exists, but probably would need also
+ * the library -lexecinfo. BFD exists if the pkg devel/binutils
+ * has been installed, but there seems to be a known problem that
+ * the "bfd.h" getting installed refers to "ansidecl.h", which
+ * doesn't get installed. */
+
/* Win32 notes: as moral equivalents of backtrace() + dladdr(),
* one could possibly first use GetCurrentProcess() +
* SymInitialize(), and then CaptureStackBackTrace() +