Skip to content

Commit 09fd353

Browse files
committed
libbacktrace: generate config.h and backtrace-supported.h
This is not really the proper way to include them, but it will have to do for now. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6f88a40 commit 09fd353

File tree

2 files changed

+186
-0
lines changed

2 files changed

+186
-0
lines changed
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/* backtrace-supported.h.in -- Whether stack backtrace is supported.
2+
Copyright (C) 2012-2016 Free Software Foundation, Inc.
3+
Written by Ian Lance Taylor, Google.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are
7+
met:
8+
9+
(1) Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
12+
(2) Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in
14+
the documentation and/or other materials provided with the
15+
distribution.
16+
17+
(3) The name of the author may not be used to
18+
endorse or promote products derived from this software without
19+
specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
25+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31+
POSSIBILITY OF SUCH DAMAGE. */
32+
33+
/* The file backtrace-supported.h.in is used by configure to generate
34+
the file backtrace-supported.h. The file backtrace-supported.h may
35+
be #include'd to see whether the backtrace library will be able to
36+
get a backtrace and produce symbolic information. */
37+
38+
39+
/* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library
40+
should work, 0 if it will not. Libraries may #include this to make
41+
other arrangements. */
42+
43+
#define BACKTRACE_SUPPORTED 1
44+
45+
/* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace
46+
library will call malloc as it works, 0 if it will call mmap
47+
instead. This may be used to determine whether it is safe to call
48+
the backtrace functions from a signal handler. In general this
49+
only applies to calls like backtrace and backtrace_pcinfo. It does
50+
not apply to backtrace_simple, which never calls malloc. It does
51+
not apply to backtrace_print, which always calls fprintf and
52+
therefore malloc. */
53+
54+
#define BACKTRACE_USES_MALLOC 1
55+
56+
/* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace
57+
library is configured with threading support, 0 if not. If this is
58+
0, the threaded parameter to backtrace_create_state must be passed
59+
as 0. */
60+
61+
#define BACKTRACE_SUPPORTS_THREADS 1
62+
63+
/* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo
64+
will work for variables. It will always work for functions. */
65+
66+
#define BACKTRACE_SUPPORTS_DATA 0

compat/libbacktrace/config.h

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/* config.h. Generated from config.h.in by configure. */
2+
/* config.h.in. Generated from configure.ac by autoheader. */
3+
4+
/* ELF size: 32 or 64 */
5+
#define BACKTRACE_ELF_SIZE unused
6+
7+
/* Define to 1 if you have the __atomic functions */
8+
#define HAVE_ATOMIC_FUNCTIONS 1
9+
10+
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
11+
don't. */
12+
#define HAVE_DECL_STRNLEN 1
13+
14+
/* Define to 1 if you have the <dlfcn.h> header file. */
15+
/* #undef HAVE_DLFCN_H */
16+
17+
/* Define if dl_iterate_phdr is available. */
18+
/* #undef HAVE_DL_ITERATE_PHDR */
19+
20+
/* Define to 1 if you have the fcntl function */
21+
/* #undef HAVE_FCNTL */
22+
23+
/* Define if getexecname is available. */
24+
/* #undef HAVE_GETEXECNAME */
25+
26+
/* Define if _Unwind_GetIPInfo is available. */
27+
//#define HAVE_GETIPINFO 1
28+
29+
/* Define to 1 if you have the <inttypes.h> header file. */
30+
#define HAVE_INTTYPES_H 1
31+
32+
/* Define to 1 if you have the <link.h> header file. */
33+
/* #undef HAVE_LINK_H */
34+
35+
/* Define to 1 if you have the <memory.h> header file. */
36+
#define HAVE_MEMORY_H 1
37+
38+
/* Define to 1 if you have the <stdint.h> header file. */
39+
#define HAVE_STDINT_H 1
40+
41+
/* Define to 1 if you have the <stdlib.h> header file. */
42+
#define HAVE_STDLIB_H 1
43+
44+
/* Define to 1 if you have the <strings.h> header file. */
45+
#define HAVE_STRINGS_H 1
46+
47+
/* Define to 1 if you have the <string.h> header file. */
48+
#define HAVE_STRING_H 1
49+
50+
/* Define to 1 if you have the __sync functions */
51+
#define HAVE_SYNC_FUNCTIONS 1
52+
53+
/* Define to 1 if you have the <sys/mman.h> header file. */
54+
/* #undef HAVE_SYS_MMAN_H */
55+
56+
/* Define to 1 if you have the <sys/stat.h> header file. */
57+
#define HAVE_SYS_STAT_H 1
58+
59+
/* Define to 1 if you have the <sys/types.h> header file. */
60+
#define HAVE_SYS_TYPES_H 1
61+
62+
/* Define to 1 if you have the <unistd.h> header file. */
63+
#define HAVE_UNISTD_H 1
64+
65+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
66+
*/
67+
#define LT_OBJDIR ".libs/"
68+
69+
/* Define to the address where bug reports for this package should be sent. */
70+
#define PACKAGE_BUGREPORT ""
71+
72+
/* Define to the full name of this package. */
73+
#define PACKAGE_NAME "package-unused"
74+
75+
/* Define to the full name and version of this package. */
76+
#define PACKAGE_STRING "package-unused version-unused"
77+
78+
/* Define to the one symbol short name of this package. */
79+
#define PACKAGE_TARNAME "libbacktrace"
80+
81+
/* Define to the home page for this package. */
82+
#define PACKAGE_URL ""
83+
84+
/* Define to the version of this package. */
85+
#define PACKAGE_VERSION "version-unused"
86+
87+
/* Define to 1 if you have the ANSI C header files. */
88+
#define STDC_HEADERS 1
89+
90+
/* Enable extensions on AIX 3, Interix. */
91+
#ifndef _ALL_SOURCE
92+
# define _ALL_SOURCE 1
93+
#endif
94+
/* Enable GNU extensions on systems that have them. */
95+
#ifndef _GNU_SOURCE
96+
# define _GNU_SOURCE 1
97+
#endif
98+
/* Enable threading extensions on Solaris. */
99+
#ifndef _POSIX_PTHREAD_SEMANTICS
100+
# define _POSIX_PTHREAD_SEMANTICS 1
101+
#endif
102+
/* Enable extensions on HP NonStop. */
103+
#ifndef _TANDEM_SOURCE
104+
# define _TANDEM_SOURCE 1
105+
#endif
106+
/* Enable general extensions on Solaris. */
107+
#ifndef __EXTENSIONS__
108+
# define __EXTENSIONS__ 1
109+
#endif
110+
111+
112+
/* Define to 1 if on MINIX. */
113+
/* #undef _MINIX */
114+
115+
/* Define to 2 if the system does not provide POSIX.1 features except with
116+
this defined. */
117+
/* #undef _POSIX_1_SOURCE */
118+
119+
/* Define to 1 if you need to in order for `stat' and other things to work. */
120+
/* #undef _POSIX_SOURCE */

0 commit comments

Comments
 (0)