mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8293851: hs_err should print more stack in hex dump
Reviewed-by: adinn, stefank
This commit is contained in:
parent
04d7b7d574
commit
cbd0688b32
13 changed files with 29 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue