[sim] Run spellcheck.sh in sim (part 2)
[binutils-gdb.git] / libbacktrace / backtrace-supported.h.in
blobd9f3030f55d953d82fcfe847d325aaaf20e3a44b
1 /* backtrace-supported.h.in -- Whether stack backtrace is supported.
2 Copyright (C) 2012-2024 Free Software Foundation, Inc.
3 Written by Ian Lance Taylor, Google.
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are
7 met:
9 (1) Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
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.
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.
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. */
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. */
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. */
43 #define BACKTRACE_SUPPORTED @BACKTRACE_SUPPORTED@
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. */
54 #define BACKTRACE_USES_MALLOC @BACKTRACE_USES_MALLOC@
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. */
61 #define BACKTRACE_SUPPORTS_THREADS @BACKTRACE_SUPPORTS_THREADS@
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. */
66 #define BACKTRACE_SUPPORTS_DATA @BACKTRACE_SUPPORTS_DATA@