xref: /netbsd-src/external/gpl3/gcc.old/lib/libbacktrace/arch/vax/backtrace-supported.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg /* This file is automatically generated.  DO NOT EDIT! */
2*8feb0f0bSmrg /* Generated from: NetBSD: mknative-gcc,v 1.113 2021/04/11 01:44:14 mrg Exp  */
336ac495dSmrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
436ac495dSmrg 
536ac495dSmrg /* backtrace-supported.h.in -- Whether stack backtrace is supported.
6*8feb0f0bSmrg    Copyright (C) 2012-2020 Free Software Foundation, Inc.
736ac495dSmrg    Written by Ian Lance Taylor, Google.
836ac495dSmrg 
936ac495dSmrg Redistribution and use in source and binary forms, with or without
1036ac495dSmrg modification, are permitted provided that the following conditions are
1136ac495dSmrg met:
1236ac495dSmrg 
1336ac495dSmrg     (1) Redistributions of source code must retain the above copyright
1436ac495dSmrg     notice, this list of conditions and the following disclaimer.
1536ac495dSmrg 
1636ac495dSmrg     (2) Redistributions in binary form must reproduce the above copyright
1736ac495dSmrg     notice, this list of conditions and the following disclaimer in
1836ac495dSmrg     the documentation and/or other materials provided with the
1936ac495dSmrg     distribution.
2036ac495dSmrg 
2136ac495dSmrg     (3) The name of the author may not be used to
2236ac495dSmrg     endorse or promote products derived from this software without
2336ac495dSmrg     specific prior written permission.
2436ac495dSmrg 
2536ac495dSmrg THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2636ac495dSmrg IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2736ac495dSmrg WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2836ac495dSmrg DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
2936ac495dSmrg INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
3036ac495dSmrg (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3136ac495dSmrg SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3236ac495dSmrg HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3336ac495dSmrg STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
3436ac495dSmrg IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3536ac495dSmrg POSSIBILITY OF SUCH DAMAGE.  */
3636ac495dSmrg 
3736ac495dSmrg /* The file backtrace-supported.h.in is used by configure to generate
3836ac495dSmrg    the file backtrace-supported.h.  The file backtrace-supported.h may
3936ac495dSmrg    be #include'd to see whether the backtrace library will be able to
4036ac495dSmrg    get a backtrace and produce symbolic information.  */
4136ac495dSmrg 
4236ac495dSmrg 
4336ac495dSmrg /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library
4436ac495dSmrg    should work, 0 if it will not.  Libraries may #include this to make
4536ac495dSmrg    other arrangements.  */
4636ac495dSmrg 
4736ac495dSmrg #define BACKTRACE_SUPPORTED 1
4836ac495dSmrg 
4936ac495dSmrg /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace
5036ac495dSmrg    library will call malloc as it works, 0 if it will call mmap
5136ac495dSmrg    instead.  This may be used to determine whether it is safe to call
5236ac495dSmrg    the backtrace functions from a signal handler.  In general this
5336ac495dSmrg    only applies to calls like backtrace and backtrace_pcinfo.  It does
5436ac495dSmrg    not apply to backtrace_simple, which never calls malloc.  It does
5536ac495dSmrg    not apply to backtrace_print, which always calls fprintf and
5636ac495dSmrg    therefore malloc.  */
5736ac495dSmrg 
5836ac495dSmrg #define BACKTRACE_USES_MALLOC 0
5936ac495dSmrg 
6036ac495dSmrg /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace
6136ac495dSmrg    library is configured with threading support, 0 if not.  If this is
6236ac495dSmrg    0, the threaded parameter to backtrace_create_state must be passed
6336ac495dSmrg    as 0.  */
6436ac495dSmrg 
6536ac495dSmrg #define BACKTRACE_SUPPORTS_THREADS 1
6636ac495dSmrg 
6736ac495dSmrg /* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo
6836ac495dSmrg    will work for variables.  It will always work for functions.  */
6936ac495dSmrg 
7036ac495dSmrg #define BACKTRACE_SUPPORTS_DATA 1
71