summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2019-04-04 11:08:40 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-17 08:39:52 +0200
commitb66f9a1ea65a15a39f502d8d3220d2b8aea825cb (patch)
tree613488218857b0b1ecbb0ac63b1813f5ab91627b /scripts/gdb/linux/utils.py
parente09deff8f8f4dc7227cac9a3d759e9806f8a0773 (diff)
xtensa: fix return_address
commit ada770b1e74a77fff2d5f539bf6c42c25f4784db upstream. return_address returns the address that is one level higher in the call stack than requested in its argument, because level 0 corresponds to its caller's return address. Use requested level as the number of stack frames to skip. This fixes the address reported by might_sleep and friends. Cc: stable@vger.kernel.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions