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:
parent
3ebfb78425
commit
fcbe7c0c81
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue