diff options
author | Jason Merrill <jason@redhat.com> | 2001-05-23 13:37:50 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-05-23 13:37:50 -0400 |
commit | b1a86a997eb13363622ec2a8d8d4b5917272ecfe (patch) | |
tree | 19cc0164ce230335d561bc51309ebe947da655b7 /gcc/dbxout.c | |
parent | 7aa9922d281d90a63937fea1bbdeb46a8225b22b (diff) | |
download | gcc-b1a86a997eb13363622ec2a8d8d4b5917272ecfe.zip gcc-b1a86a997eb13363622ec2a8d8d4b5917272ecfe.tar.gz gcc-b1a86a997eb13363622ec2a8d8d4b5917272ecfe.tar.bz2 |
* dbxout.c (dbxout_type_methods): Do still group methods by name.
From-SVN: r42504
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 0d0fd64..78c45a2 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -771,6 +771,8 @@ dbxout_type_methods (type) while (fndecl) { + int need_prefix = 1; + /* Group together all the methods for the same operation. These differ in the types of the arguments. */ for (last = NULL_TREE; @@ -802,10 +804,25 @@ dbxout_type_methods (type) if (DECL_IGNORED_P (fndecl) || DECL_ABSTRACT (fndecl)) continue; + /* Redundantly output the plain name, since that's what gdb + expects. */ + if (need_prefix) + { + tree name = DECL_NAME (fndecl); + fprintf (asmfile, "%s::", IDENTIFIER_POINTER (name)); + CHARS (IDENTIFIER_LENGTH (name) + 2); + need_prefix = 0; + } + dbxout_type (TREE_TYPE (fndecl), 0); dbxout_type_method_1 (fndecl, debug_name); } + if (!need_prefix) + { + putc (';', asmfile); + CHARS (1); + } } } |