xref: /dflybsd-src/contrib/gdb-7/gdb/gdb-demangle.h (revision a45ae5f869d9cfcb3e41dbab486e10bfa9e336bf)
1*a45ae5f8SJohn Marino /* Basic C++ demangling support for GDB.
2*a45ae5f8SJohn Marino    Copyright (c) 2011-2012 Free Software Foundation, Inc.
3*a45ae5f8SJohn Marino 
4*a45ae5f8SJohn Marino    This file is part of GDB.
5*a45ae5f8SJohn Marino 
6*a45ae5f8SJohn Marino    This program is free software; you can redistribute it and/or modify
7*a45ae5f8SJohn Marino    it under the terms of the GNU General Public License as published by
8*a45ae5f8SJohn Marino    the Free Software Foundation; either version 3 of the License, or
9*a45ae5f8SJohn Marino    (at your option) any later version.
10*a45ae5f8SJohn Marino 
11*a45ae5f8SJohn Marino    This program is distributed in the hope that it will be useful,
12*a45ae5f8SJohn Marino    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*a45ae5f8SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*a45ae5f8SJohn Marino    GNU General Public License for more details.
15*a45ae5f8SJohn Marino 
16*a45ae5f8SJohn Marino    You should have received a copy of the GNU General Public License
17*a45ae5f8SJohn Marino    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18*a45ae5f8SJohn Marino 
19*a45ae5f8SJohn Marino #ifndef GDB_DEMANGLE_H
20*a45ae5f8SJohn Marino #define GDB_DEMANGLE_H
21*a45ae5f8SJohn Marino 
22*a45ae5f8SJohn Marino /* Nonzero means that encoded C++/ObjC names should be printed out in their
23*a45ae5f8SJohn Marino    C++/ObjC form rather than raw.  */
24*a45ae5f8SJohn Marino extern int demangle;
25*a45ae5f8SJohn Marino 
26*a45ae5f8SJohn Marino /* Nonzero means that encoded C++/ObjC names should be printed out in their
27*a45ae5f8SJohn Marino    C++/ObjC form even in assembler language displays.  If this is set, but
28*a45ae5f8SJohn Marino    DEMANGLE is zero, names are printed raw, i.e. DEMANGLE controls.  */
29*a45ae5f8SJohn Marino extern int asm_demangle;
30*a45ae5f8SJohn Marino 
31*a45ae5f8SJohn Marino /* Fake a "set demangle-style" command.  */
32*a45ae5f8SJohn Marino extern void set_demangling_style (char *);
33*a45ae5f8SJohn Marino 
34*a45ae5f8SJohn Marino /* Check if a character is one of the commonly used C++ marker characters.  */
35*a45ae5f8SJohn Marino extern int is_cplus_marker (int);
36*a45ae5f8SJohn Marino 
37*a45ae5f8SJohn Marino #endif /* GDB_DEMANGLE_H */
38