diff options
author | Nick Clifton <nickc@redhat.com> | 2019-01-08 16:53:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-01-08 16:53:26 +0000 |
commit | 236f4ebe3ac7e8f94184fdcc39c70d74cc62b82a (patch) | |
tree | 3a93862257e3b40a933ee072499d4bc077a66606 /binutils/stabs.c | |
parent | c8fcc36012301d7402fd990ee5d8f78dffa824f0 (diff) | |
download | gdb-236f4ebe3ac7e8f94184fdcc39c70d74cc62b82a.zip gdb-236f4ebe3ac7e8f94184fdcc39c70d74cc62b82a.tar.gz gdb-236f4ebe3ac7e8f94184fdcc39c70d74cc62b82a.tar.bz2 |
Remove support for old gnu v2 name mangling.
PR 24044
* cxxfilt.c (hp_symbol_characters): Delete.
(main): Remove depcreated demangling styles.
* stabs.c (parse_stab_argtypes): Remove support for old gnu v2
demangling opnames.
* testsuite/binutils-all/cxxfilt.exp: Use the
--no-strip-underscore option for targets that do prefix their
symbols with underscores.
Update tests to elimiate those that use gnu v2 encoding.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r-- | binutils/stabs.c | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index 18788b9..e84aa6f 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -3037,27 +3037,15 @@ parse_stab_argtypes (void *dhandle, struct stab_handle *info, && fieldname[1] == 'p' && (fieldname[2] == '$' || fieldname[2] == '.')) { - const char *opname; - - opname = cplus_mangle_opname (fieldname + 3, 0); - if (opname == NULL) - { - fprintf (stderr, _("No mangling for \"%s\"\n"), fieldname); - return DEBUG_TYPE_NULL; - } - mangled_name_len += strlen (opname); - physname = (char *) xmalloc (mangled_name_len); - strncpy (physname, fieldname, 3); - strcpy (physname + 3, opname); + /* Opname selection is no longer supported by libiberty's demangler. */ + return DEBUG_TYPE_NULL; } + + physname = (char *) xmalloc (mangled_name_len); + if (is_constructor) + physname[0] = '\0'; else - { - physname = (char *) xmalloc (mangled_name_len); - if (is_constructor) - physname[0] = '\0'; - else - strcpy (physname, fieldname); - } + strcpy (physname, fieldname); physname_len = strlen (physname); strcat (physname, buf); |