test-libbfd.c 233 B

123456789101112131415
  1. #include <bfd.h>
  2. extern int printf(const char *format, ...);
  3. int main(void)
  4. {
  5. char symbol[4096] = "FieldName__9ClassNameFd";
  6. char *tmp;
  7. tmp = bfd_demangle(0, symbol, 0);
  8. printf("demangled symbol: {%s}\n", tmp);
  9. return 0;
  10. }