Bug 19306

Summary: Incorrect demangling of symbols with ABI tags
Product: gdb Reporter: Pedro Alves <pedro>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Severity: normal CC: mehmetgelisin
Priority: P2    
Version: HEAD   
Target Milestone: 7.10   
Host: Target:
Build: Last reconfirmed:

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.
Comment 2 Mehmet gelisin 2021-09-10 19:35:48 UTC Comment hidden (spam)