Fix for the ARM64 "bt -R <symbol>" option if the only reference

to the kernel text symbol in a backtrace is contained within the
"[PC: <address> [<symbol+offset>]" line of an exception frame
dump.  Without the patch, the reference will only be picked up if
the PC's hexadecimal address value is used.
(anderson@redhat.com)
This commit is contained in:
Dave Anderson 2016-07-20 12:27:25 -04:00
parent 4978028e9e
commit b349598bb7

View File

@ -2762,6 +2762,8 @@ arm64_print_exception_frame(struct bt_info *bt, ulong pt_regs, int mode, FILE *o
if (BT_REFERENCE_CHECK(bt)) {
arm64_do_bt_reference_check(bt, regs->pc, NULL);
if ((sp = value_search(regs->pc, &offset)))
arm64_do_bt_reference_check(bt, 0, sp->name);
arm64_do_bt_reference_check(bt, LR, NULL);
arm64_do_bt_reference_check(bt, SP, NULL);
arm64_do_bt_reference_check(bt, regs->pstate, NULL);