Ingo Molnar | 1e3f30f | 2013-10-02 15:48:49 +0200 | [diff] [blame] | 1 | extern int printf(const char *format, ...); |
Ingo Molnar | 1c47661 | 2013-10-02 15:15:09 +0200 | [diff] [blame] | 2 | extern char *cplus_demangle(const char *, int); |
3 | |||||
4 | int main(void) | ||||
5 | { | ||||
Ingo Molnar | 1e3f30f | 2013-10-02 15:48:49 +0200 | [diff] [blame] | 6 | char symbol[4096] = "FieldName__9ClassNameFd"; |
7 | char *tmp; | ||||
8 | |||||
9 | tmp = cplus_demangle(symbol, 0); | ||||
10 | |||||
11 | printf("demangled symbol: {%s}\n", tmp); | ||||
Ingo Molnar | 1c47661 | 2013-10-02 15:15:09 +0200 | [diff] [blame] | 12 | |
13 | return 0; | ||||
14 | } |