1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

gdb-scripts: fix interpretation of RIP in saved context on stack

Previously, only `<rollback>` would be displayed for not running tasks
because of a misconception of the structure of the saved context.
This commit is contained in:
daniel-k 2016-08-24 15:00:08 +02:00
parent 3ebfb78425
commit fcbe7c0c81

View file

@ -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)