--- old/src/share/vm/utilities/elfSymbolTable.cpp Tue Oct 11 15:19:06 2011 +++ new/src/share/vm/utilities/elfSymbolTable.cpp Tue Oct 11 15:19:05 2011 @@ -50,7 +50,7 @@ m_symbols = NULL; } } - if (m_status == Decoder::no_error) { + if (!Decoder::is_error(m_status)) { memcpy(&m_shdr, &shdr, sizeof(Elf_Shdr)); } } else { @@ -68,13 +68,13 @@ } } -Decoder::decoder_status ElfSymbolTable::lookup(address addr, int* stringtableIndex, int* posIndex, int* offset) { +bool ElfSymbolTable::lookup(address addr, int* stringtableIndex, int* posIndex, int* offset) { assert(stringtableIndex, "null string table index pointer"); assert(posIndex, "null string table offset pointer"); assert(offset, "null offset pointer"); - if (m_status != Decoder::no_error) { - return m_status; + if (Decoder::is_error(m_status)) { + return false; } address pc = 0; @@ -98,7 +98,7 @@ if ((cur_pos = ftell(m_file)) == -1 || fseek(m_file, m_shdr.sh_offset, SEEK_SET)) { m_status = Decoder::file_invalid; - return m_status; + return false; } Elf_Sym sym; @@ -115,12 +115,12 @@ } } else { m_status = Decoder::file_invalid; - return m_status; + return false; } } fseek(m_file, cur_pos, SEEK_SET); } - return m_status; + return true; } #endif // _WINDOWS