8079473: allow demangling to be optional in dll_address_to_function_name

Add a demangling boolean argument to dll_address_to_function_name and decode

Reviewed-by: dholmes, simonis
This commit is contained in:
Bertrand Delsart 2015-06-16 11:58:25 +02:00
parent e720ad23ac
commit a6a13b5344
16 changed files with 70 additions and 52 deletions

View file

@ -1439,7 +1439,8 @@ static address resolve_function_descriptor_to_code_pointer(address p) {
}
bool os::dll_address_to_function_name(address addr, char *buf,
int buflen, int *offset) {
int buflen, int *offset,
bool demangle) {
if (offset) {
*offset = -1;
}
@ -1454,7 +1455,7 @@ bool os::dll_address_to_function_name(address addr, char *buf,
}
// Go through Decoder::decode to call getFuncName which reads the name from the traceback table.
return Decoder::decode(addr, buf, buflen, offset);
return Decoder::decode(addr, buf, buflen, offset, demangle);
}
static int getModuleName(codeptr_t pc, // [in] program counter