Copy struct library.should_activate_latent on clone
[platform/upstream/ltrace.git] / demangle.h
1 /*
2  * This file is part of ltrace.
3  * Copyright (C) 2012 Petr Machata, Red Hat Inc.
4  * Copyright (C) 2006 Ian Wienand
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21
22 #include "config.h"
23
24 #if defined HAVE_LIBSUPC__ || defined HAVE_LIBSTDC__
25 # define USE_CXA_DEMANGLE
26 #endif
27 #if defined HAVE_LIBIBERTY || defined USE_CXA_DEMANGLE
28 # define USE_DEMANGLE
29 #endif
30
31 extern char *cplus_demangle(const char *mangled, int options);
32
33 const char *my_demangle(const char *function_name);
34
35 /* Options passed to cplus_demangle (in 2nd parameter). */
36
37 #define DMGL_NO_OPTS    0       /* For readability... */
38 #define DMGL_PARAMS     (1 << 0)        /* Include function args */
39 #define DMGL_ANSI       (1 << 1)        /* Include const, volatile, etc */
40 #define DMGL_JAVA       (1 << 2)        /* Demangle as Java rather than C++. */