Skip to content

Commit 003680d

Browse files
committed
Always print hex dump. Plus disassembly when hsdis loaded.
1 parent 660a388 commit 003680d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/hotspot/share/code/codeBlob.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,11 @@ void CodeBlob::dump_for_addr(address addr, outputStream* st, bool verbose) const
926926
if (iter.has_current()) end = iter.addr();
927927
}
928928

929-
Disassembler::decode(start, end, st);
929+
// Always print hex. Disassembler may still have problems if start is not a correct instruction start.
930+
os::print_hex_dump(st, start, end, 1, /* print_ascii=*/false);
931+
if (!Disassembler::is_abstract()) {
932+
Disassembler::decode(start, end, st);
933+
}
930934
}
931935
}
932936
return;

0 commit comments

Comments
 (0)