8293851: hs_err should print more stack in hex dump

Reviewed-by: adinn, stefank
This commit is contained in:
Aleksey Shipilev 2022-09-19 07:38:06 +00:00
parent 04d7b7d574
commit cbd0688b32
13 changed files with 29 additions and 34 deletions

View file

@ -935,6 +935,11 @@ void os::print_dhm(outputStream* st, const char* startStr, long sec) {
st->print_cr("%s %ld days %ld:%02ld hours", startStr, days, hours, minutes);
}
void os::print_tos(outputStream* st, address sp) {
st->print_cr("Top of Stack: (sp=" PTR_FORMAT ")", p2i(sp));
print_hex_dump(st, sp, sp + 512, sizeof(intptr_t));
}
void os::print_instructions(outputStream* st, address pc, int unitsize) {
st->print_cr("Instructions: (pc=" PTR_FORMAT ")", p2i(pc));
print_hex_dump(st, pc - 256, pc + 256, unitsize);