7186778: MachO decoder implementation for MacOSX

Implementation of decoder for Apple's MacOSX. The implementation is based on the patch provided by Kevin Walls.

Reviewed-by: coleenp, kamg, kevinw
This commit is contained in:
Zhengyu Gu 2012-07-30 10:25:52 -04:00
parent b5b29845bd
commit 5515df5c31
8 changed files with 193 additions and 4 deletions

View file

@ -72,10 +72,10 @@ void WindowsDecoder::initialize() {
// find out if jvm.dll contains private symbols, by decoding
// current function and comparing the result
address addr = (address)Decoder::decode;
address addr = (address)Decoder::demangle;
char buf[MAX_PATH];
if (decode(addr, buf, sizeof(buf), NULL)) {
_can_decode_in_vm = !strcmp(buf, "Decoder::decode");
_can_decode_in_vm = !strcmp(buf, "Decoder::demangle");
}
}
}