aboutsummaryrefslogtreecommitdiff
path: root/gdb/demangle.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-05-05 18:16:23 +0000
committerFred Fish <fnf@specifix.com>1992-05-05 18:16:23 +0000
commit8f793aa54168462d7525a44e83e6a56c7f362a5e (patch)
tree1aa179a28019c4b45822843a45e55ddb7c41768c /gdb/demangle.h
parent939a34334201ecba8870c2f29982f8d47b716d65 (diff)
downloadgdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.zip
gdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.tar.gz
gdb-8f793aa54168462d7525a44e83e6a56c7f362a5e.tar.bz2
* Makefile.in (DEMANGLER): Define and default to cplus-dem.
Allows selection of C++ demangler to be a configuration option until multiple demanglers are supported. * demangle.h: New include file for extended demangler support. * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c, utils.c, valprint.c: Include "demangle.h" and change all calls to cplus_demangle() or fputs_demangled() to use individual demangling options. * valprint.c (type_print_1): Change options to cplus_demangle to print demangled function args. Still broken, but now less so. * cplus-dem.c: Include demangle.h, reorganize and update some comments to reflect reality. * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change second arg from fixed integer to bit based multiple options. * cplus-dem.c (optable): Reformat and replace ansi members with bit based options. * cplus-dem.c (do_type): Fix bug with parsing missing return type.
Diffstat (limited to 'gdb/demangle.h')
-rw-r--r--gdb/demangle.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/demangle.h b/gdb/demangle.h
new file mode 100644
index 0000000..71cdb80
--- /dev/null
+++ b/gdb/demangle.h
@@ -0,0 +1,20 @@
+/* Demangler defs for GNU C++ style demangling.
+ Copyright 1992 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+
+#define DMGL_PARAMS (1 << 0) /* Include function args */
+#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */