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:
@@ -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,
|
status_t get_next_argument_gcc3(uint32* _cookie, const char* symbol,
|
||||||
char* name, size_t nameSize, int32* _type,
|
char* name, size_t nameSize, int32* _type,
|
||||||
size_t* _argumentLength);
|
size_t* _argumentLength);
|
||||||
|
#ifndef _KERNEL_MODE
|
||||||
|
const char* demangle_name_gcc3(const char* name, char* buffer,
|
||||||
|
size_t bufferSize);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif // DEMANGLE_H
|
#endif // DEMANGLE_H
|
||||||
|
|||||||
@@ -3870,3 +3870,19 @@ get_next_argument_gcc3(uint32* _cookie, const char* mangledName, char* name,
|
|||||||
++*_cookie;
|
++*_cookie;
|
||||||
return B_OK;
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user