mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 23:50:40 +00:00
d174f66f95
* More code cleanup and bring back bin.reload for the debugger * Benchmark: swift: 23/9549 rcore: 17232/37147 (2-400x faster) * For DVIA iOS app this is 1s less * Demangle all the symbols, not just few
20 lines
426 B
C
20 lines
426 B
C
/* radare - LGPL - Copyright 2015-2018 - inisider */
|
|
|
|
#include <r_bin.h>
|
|
#include "./demangler.h"
|
|
|
|
R_API char *r_bin_demangle_msvc(const char *str) {
|
|
char *out = NULL;
|
|
SDemangler *mangler = 0;
|
|
|
|
create_demangler (&mangler);
|
|
if (!mangler) {
|
|
return NULL;
|
|
}
|
|
if (init_demangler (mangler, (char *)str) == eDemanglerErrOK) {
|
|
mangler->demangle (mangler, &out/*demangled_name*/);
|
|
}
|
|
free_demangler (mangler);
|
|
return out;
|
|
}
|