summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-06-03 08:39:56 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-06-07 21:26:59 -0400
commit470dd224e4b587137a482c6db3d765860bcba19c (patch)
treea54e1dc2948089c51d297db55fa14fc575c02517 /config_h.SH
parent26c014b2af00ac88008218a92a598f8644e0d236 (diff)
downloadperl-470dd224e4b587137a482c6db3d765860bcba19c.tar.gz
Add C backtrace API.
Useful for at least debugging. Supported in Linux and OS X (possibly to some extent in *BSD). See perlhacktips for details.
Diffstat (limited to 'config_h.SH')
-rwxr-xr-xconfig_h.SH24
1 files changed, 24 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index 5b38733d33..5e8432baa9 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -131,6 +131,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_difftime HAS_DIFFTIME /**/
+/* HAS_DLADDR:
+ * This symbol, if defined, indicates that the dladdr routine is
+ * available to return information about stack addresses.
+ */
+#$d_dladdr HAS_DLADDR /**/
+
/* HAS_DLERROR:
* This symbol, if defined, indicates that the dlerror routine is
* available to return a string describing the last error that
@@ -138,6 +144,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_dlerror HAS_DLERROR /**/
+/* HAS_BACKTRACE:
+ * This symbol, if defined, indicates that the backtrace routine is
+ * available to return backtrace information about the C stack.
+ */
+#$d_backtrace HAS_BACKTRACE /**/
+
/* HAS_DUP2:
* This symbol, if defined, indicates that the dup2 routine is
* available to duplicate file descriptors.
@@ -689,6 +701,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$i_dlfcn I_DLFCN /**/
+/* I_EXECINFO:
+ * This symbol, if defined, indicates that <execinfo.h> exists and should
+ * be included.
+ */
+#$i_execinfo I_EXECINFO /**/
+
/* I_FCNTL:
* This manifest constant tells the C program to include <fcntl.h>.
*/
@@ -4212,6 +4230,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$i_assert I_ASSERT /**/
+/* I_BFD:
+ * This symbol, if defined, indicates that <bfd.h> exists and
+ * could be included by the C program to use the BFD library.
+ */
+#$i_bfd I_BFD /**/
+
/* I_CRYPT:
* This symbol, if defined, indicates that <crypt.h> exists and
* should be included.