mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8207342: error occurred during error reporting (printing register info)
Os::print_location misses a check if the pointer is readable. Reviewed-by: goetz, coleenp
This commit is contained in:
parent
3380b0d0ef
commit
d5a05363ef
9 changed files with 69 additions and 61 deletions
|
@ -603,7 +603,9 @@ void os::print_register_info(outputStream *st, const void *context) {
|
|||
st->print_cr("Register to memory mapping:");
|
||||
st->cr();
|
||||
|
||||
// this is only for the "general purpose" registers
|
||||
st->print("pc ="); print_location(st, (intptr_t)uc->uc_mcontext.regs->nip);
|
||||
st->print("lr ="); print_location(st, (intptr_t)uc->uc_mcontext.regs->link);
|
||||
st->print("ctr ="); print_location(st, (intptr_t)uc->uc_mcontext.regs->ctr);
|
||||
for (int i = 0; i < 32; i++) {
|
||||
st->print("r%-2d=", i);
|
||||
print_location(st, uc->uc_mcontext.regs->gpr[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue