]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/backtrace-supported.h.in
* config/i386/i386.md (and<mode>3): Generate zero-extends for
[thirdparty/gcc.git] / libbacktrace / backtrace-supported.h.in
CommitLineData
ecd3459e 1/* backtrace-supported.h.in -- Whether stack backtrace is supported.
fbd26352 2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
ecd3459e 3 Written by Ian Lance Taylor, Google.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are
7met:
8
9 (1) Redistributions of source code must retain the above copyright
75c399ef 10 notice, this list of conditions and the following disclaimer.
ecd3459e 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
75c399ef 15 distribution.
16
ecd3459e 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
21THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
25INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31POSSIBILITY 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 @BACKTRACE_SUPPORTED@
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 @BACKTRACE_USES_MALLOC@
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 @BACKTRACE_SUPPORTS_THREADS@
48ee217e 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 @BACKTRACE_SUPPORTS_DATA@