Added function demangle_name_gcc3() not used in the add-on. The whole demangler

should better be moved to a shared location. Eventually...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31145 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-06-20 18:43:38 +00:00
parent d27c52da2b
commit 8cd32d5b06
2 changed files with 20 additions and 0 deletions

View File

@ -22,6 +22,10 @@ const char* demangle_symbol_gcc3(const char* name, char* buffer,
status_t get_next_argument_gcc3(uint32* _cookie, const char* symbol,
char* name, size_t nameSize, int32* _type,
size_t* _argumentLength);
#ifndef _KERNEL_MODE
const char* demangle_name_gcc3(const char* name, char* buffer,
size_t bufferSize);
#endif
#endif // DEMANGLE_H

View File

@ -3870,3 +3870,19 @@ get_next_argument_gcc3(uint32* _cookie, const char* mangledName, char* name,
++*_cookie;
return B_OK;
}
#ifndef _KERNEL_MODE
const char*
demangle_name_gcc3(const char* mangledName, char* buffer, size_t bufferSize)
{
Demangler demangler;
DemanglingInfo info(false);
if (demangler.Demangle(mangledName, buffer, bufferSize, info) != ERROR_OK)
return NULL;
return buffer;
}
#endif