aboutsummaryrefslogtreecommitdiff
path: root/gdb/cplus-dem.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-15 19:25:13 +0000
committerFred Fish <fnf@specifix.com>1992-06-15 19:25:13 +0000
commit4c07f28d773c899f7cc1270dd32c5a376b3771ee (patch)
treefe89b83cd8de97edbdd6bef22e07e02c6210a8a0 /gdb/cplus-dem.c
parent5bdf878ebf0f5da5f7e228b5943e8e709cc3341d (diff)
downloadgdb-4c07f28d773c899f7cc1270dd32c5a376b3771ee.zip
gdb-4c07f28d773c899f7cc1270dd32c5a376b3771ee.tar.gz
gdb-4c07f28d773c899f7cc1270dd32c5a376b3771ee.tar.bz2
* Makefile.in (VERSION): Bump to 4.5.5.
* symtab.c (decode_line_1): Until C++ support stabilizes, when C++ lookups fail, print possibly helpful hint about completion. * cplus-dem.c (demangle_signature): Fix ARM style demangling for static data members. * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype. * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install, it's broken on ncr3000's.
Diffstat (limited to 'gdb/cplus-dem.c')
-rw-r--r--gdb/cplus-dem.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c
index 6dfd6fa..18418f0 100644
--- a/gdb/cplus-dem.c
+++ b/gdb/cplus-dem.c
@@ -529,9 +529,15 @@ demangle_signature (declp, mangled, work)
}
if (success && !func_done)
{
- /* Even with ARM style demangling, sometimes there is no explicit
- function argument tokens if the function takes no arguments. */
+#ifdef GNU_DEMANGLING
+ /* With GNU style demangling, bar__3foo is 'foo::bar(void)', and
+ bar__3fooi is 'foo::bar(int)'. We get here when we find the
+ first case, and need to ensure that the '(void)' gets added to
+ the current declp. Note that with ARM_DEMANGLING, the first
+ case represents the name of a static data member 'foo::bar',
+ which is in the current declp, so we leave it alone. */
success = demangle_args (declp, mangled, work);
+#endif
}
if (success && work -> static_type && PRINT_ARG_TYPES)
{