xref: /netbsd-src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h (revision b6fd2da273dc4ead8893467a6fb7e008524b75f3)
16bd99797Schristos /* This file is automatically generated.  DO NOT EDIT! */
2*b6fd2da2Smrg /* Generated from: NetBSD: mknative-gcc,v 1.117 2023/07/31 01:48:37 mrg Exp  */
352aaee15Smrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
46bd99797Schristos 
56bd99797Schristos /* backtrace-supported.h.in -- Whether stack backtrace is supported.
6*b6fd2da2Smrg    Copyright (C) 2012-2022 Free Software Foundation, Inc.
76bd99797Schristos    Written by Ian Lance Taylor, Google.
86bd99797Schristos 
96bd99797Schristos Redistribution and use in source and binary forms, with or without
106bd99797Schristos modification, are permitted provided that the following conditions are
116bd99797Schristos met:
126bd99797Schristos 
136bd99797Schristos     (1) Redistributions of source code must retain the above copyright
146bd99797Schristos     notice, this list of conditions and the following disclaimer.
156bd99797Schristos 
166bd99797Schristos     (2) Redistributions in binary form must reproduce the above copyright
176bd99797Schristos     notice, this list of conditions and the following disclaimer in
186bd99797Schristos     the documentation and/or other materials provided with the
196bd99797Schristos     distribution.
206bd99797Schristos 
216bd99797Schristos     (3) The name of the author may not be used to
226bd99797Schristos     endorse or promote products derived from this software without
236bd99797Schristos     specific prior written permission.
246bd99797Schristos 
256bd99797Schristos THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
266bd99797Schristos IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
276bd99797Schristos WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
286bd99797Schristos DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
296bd99797Schristos INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
306bd99797Schristos (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
316bd99797Schristos SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
326bd99797Schristos HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
336bd99797Schristos STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
346bd99797Schristos IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
356bd99797Schristos POSSIBILITY OF SUCH DAMAGE.  */
366bd99797Schristos 
376bd99797Schristos /* The file backtrace-supported.h.in is used by configure to generate
386bd99797Schristos    the file backtrace-supported.h.  The file backtrace-supported.h may
396bd99797Schristos    be #include'd to see whether the backtrace library will be able to
406bd99797Schristos    get a backtrace and produce symbolic information.  */
416bd99797Schristos 
426bd99797Schristos 
436bd99797Schristos /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library
446bd99797Schristos    should work, 0 if it will not.  Libraries may #include this to make
456bd99797Schristos    other arrangements.  */
466bd99797Schristos 
475c10ef7eSmrg #define BACKTRACE_SUPPORTED 1
486bd99797Schristos 
496bd99797Schristos /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace
506bd99797Schristos    library will call malloc as it works, 0 if it will call mmap
516bd99797Schristos    instead.  This may be used to determine whether it is safe to call
526bd99797Schristos    the backtrace functions from a signal handler.  In general this
536bd99797Schristos    only applies to calls like backtrace and backtrace_pcinfo.  It does
546bd99797Schristos    not apply to backtrace_simple, which never calls malloc.  It does
556bd99797Schristos    not apply to backtrace_print, which always calls fprintf and
566bd99797Schristos    therefore malloc.  */
576bd99797Schristos 
586bd99797Schristos #define BACKTRACE_USES_MALLOC 0
596bd99797Schristos 
606bd99797Schristos /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace
616bd99797Schristos    library is configured with threading support, 0 if not.  If this is
626bd99797Schristos    0, the threaded parameter to backtrace_create_state must be passed
636bd99797Schristos    as 0.  */
646bd99797Schristos 
656bd99797Schristos #define BACKTRACE_SUPPORTS_THREADS 1
66d79d5e15Smrg 
67d79d5e15Smrg /* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo
68d79d5e15Smrg    will work for variables.  It will always work for functions.  */
69d79d5e15Smrg 
70d79d5e15Smrg #define BACKTRACE_SUPPORTS_DATA 1
71