1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <stdio.h> 2 #include <stdio.h> 3 #include <stdlib.h> 3 #include <stdlib.h> 4 #include <cxxabi.h> 4 #include <cxxabi.h> 5 5 6 int main(void) 6 int main(void) 7 { 7 { 8 size_t len = 256; 8 size_t len = 256; 9 char *output = (char*)malloc(len); 9 char *output = (char*)malloc(len); 10 int status; 10 int status; 11 11 12 output = abi::__cxa_demangle("FieldNam 12 output = abi::__cxa_demangle("FieldName__9ClassNameFd", output, &len, &status); 13 13 14 printf("demangled symbol: {%s}\n", out 14 printf("demangled symbol: {%s}\n", output); 15 15 16 return 0; 16 return 0; 17 } 17 } 18 18
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.