Skip to content

Commit

Permalink
Merge pull request #14 from crash-utility/master
Browse files Browse the repository at this point in the history
Fix for "bt" command printing "bogus exception frame" warning
  • Loading branch information
fengjixuchui authored Feb 14, 2023
2 parents 710d80b + 92de7c3 commit 99ee376
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -3938,6 +3938,11 @@ x86_64_low_budget_back_trace_cmd(struct bt_info *bt_in)
if (irq_eframe) {
bt->flags |= BT_EXCEPTION_FRAME;
i = (irq_eframe - bt->stackbase)/sizeof(ulong);
if (symbol_exists("asm_common_interrupt")) {
i -= 1;
up = (ulong *)(&bt->stackbuf[i*sizeof(ulong)]);
bt->instptr = *up;
}
x86_64_print_stack_entry(bt, ofp, level, i, bt->instptr);
bt->flags &= ~(ulonglong)BT_EXCEPTION_FRAME;
cs = x86_64_exception_frame(EFRAME_PRINT|EFRAME_CS, 0,
Expand Down Expand Up @@ -6521,6 +6526,14 @@ x86_64_irq_eframe_link_init(void)
else
return;

if (symbol_exists("asm_common_interrupt")) {
if (symbol_exists("asm_call_on_stack"))
machdep->machspec->irq_eframe_link = -64;
else
machdep->machspec->irq_eframe_link = -32;
return;
}

if (THIS_KERNEL_VERSION < LINUX(2,6,9))
return;

Expand Down

0 comments on commit 99ee376

Please sign in to comment.