FreeBSD Bugzilla – Attachment 144120 Details for
Bug 191365
Name demangling doesn't work for local names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
The test source
test.cc (text/plain), 563 bytes, created by
Ivan Kosarev
on 2014-06-25 13:38:58 UTC
(
hide
)
Description:
The test source
Filename:
MIME Type:
Creator:
Ivan Kosarev
Created:
2014-06-25 13:38:58 UTC
Size:
563 bytes
patch
obsolete
> >#include <stdio.h> >#include <stdlib.h> > >extern "C" char* __cxa_demangle(const char* mangled_name, > char* buf, > size_t* n, > int* status); > >void test(const char *mangled) >{ > int status = 0; > char *DemangledName = __cxa_demangle(mangled, NULL, NULL, &status); > printf("%s: status %d", mangled, status); > if(status == 0) { > printf("; demangled: '%s'", DemangledName); > } > free(DemangledName); > printf("\n"); >} > >int main(void) >{ > test("_Z9NullDerefPi"); > test("_ZL9NullDerefPi"); > 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 191365
: 144120