From fcbe7c0c810ccf51f9730526e8e73cfaeb62d240 Mon Sep 17 00:00:00 2001 From: daniel-k Date: Wed, 24 Aug 2016 15:00:08 +0200 Subject: [PATCH] gdb-scripts: fix interpretation of RIP in saved context on stack Previously, only `` would be displayed for not running tasks because of a misconception of the structure of the saved context. --- hermit/usr/gdb/hermit/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/usr/gdb/hermit/tasks.py b/hermit/usr/gdb/hermit/tasks.py index c5f8705c3..bf2a36d15 100644 --- a/hermit/usr/gdb/hermit/tasks.py +++ b/hermit/usr/gdb/hermit/tasks.py @@ -101,7 +101,7 @@ class HermitPs(gdb.Command): else: # find instruction pointer in saved stack - rip_addr = task['last_stack_pointer'] + 20 + rip_addr = task['last_stack_pointer'] + 25 rip_val = int(rip_addr.dereference()) # try to resolve a symbol rip_sym = addressToSymbol(rip_val)