FreeBSD Bugzilla – Attachment 186669 Details for
Bug 222562
c++filt and libelftc do not demangle names correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Small c++ program to demonstrate the problem
tester.cc (text/x-c++src), 523 bytes, created by
Ian Lepore
on 2017-09-24 17:07:55 UTC
(
hide
)
Description:
Small c++ program to demonstrate the problem
Filename:
MIME Type:
Creator:
Ian Lepore
Created:
2017-09-24 17:07:55 UTC
Size:
523 bytes
patch
obsolete
> >#include <cxxabi.h> >#include <typeinfo> >#include <stdio.h> >#include <unistd.h> > >struct Foo {int x;} foo; > >int >main(int argc, char** argv) >{ > struct Bar {int x;} bar; > char *name; > int status; > > name = abi::__cxa_demangle(typeid(foo).name(), NULL, NULL, &status); > printf("name '%s' = '%s' status=%d\n", typeid(foo).name(), name, status); > > name = abi::__cxa_demangle(typeid(bar).name(), NULL, NULL, &status); > printf("name '%s' = '%s' status=%d\n", typeid(bar).name(), name, status); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 222562
: 186669