Bug 19306 - Incorrect demangling of symbols with ABI tags
Summary: Incorrect demangling of symbols with ABI tags
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 7.10
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 11:55 UTC by Pedro Alves
Modified: 2015-11-30 11:56 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Alves 2015-11-30 11:55:44 UTC
The symbol _ZNSt8ios_base7failureB5cxx11C1EPKcRKSt10error_code, which
appears in libstdc++, was being demangled as:

  std::ios_base::failure[abi:cxx11]::cxx11(char const*, std::error_code const&)

That is clearly incorrect: std::ios_base::failure does not have a
method cxx11, and anyhow if you look closely at the mangled name you
will see that it is supposed to be a constructor.  

The correct demangling is:
  std::ios_base::failure[abi:cxx11]::failure(char const*, std::error_code const&)
Comment 1 Pedro Alves 2015-11-30 11:56:09 UTC
Fixed in both master and 7.10 branch.