7131050: fix for "7071311 Decoder enhancement" does not build on MacOS X

Decoder API changes did not reflect in os_bsd

Reviewed-by: kamg, dcubed
This commit is contained in:
Zhengyu Gu 2012-01-18 11:45:14 -05:00
parent 14c0efd947
commit dce4a696bf

View File

@ -1920,7 +1920,7 @@ bool os::dll_address_to_function_name(address addr, char *buf,
return true;
} else if (dlinfo.dli_fname != NULL && dlinfo.dli_fbase != 0) {
if (Decoder::decode((address)(addr - (address)dlinfo.dli_fbase),
dlinfo.dli_fname, buf, buflen, offset) == Decoder::no_error) {
buf, buflen, offset, dlinfo.dli_fname)) {
return true;
}
}