libbacktrace: support fetching executable name using sysctl

This supports FreeBSD and NetBSD when /proc is not mounted.
This commit is contained in:
Ian Lance Taylor
2020-02-15 15:33:11 -08:00
parent 559ab7cab4
commit 0f06cda953
4 changed files with 191 additions and 1 deletions

View File

@@ -34,6 +34,14 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in <sys/sysctl.h>.
*/
#undef HAVE_KERN_PROC
/* Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in
<sys/sysctl.h>. */
#undef HAVE_KERN_PROC_ARGS
/* Define to 1 if you have the <link.h> header file. */
#undef HAVE_LINK_H