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