GP-5163: Read stack at $sp-1 for 2, for negative stack growth.

This commit is contained in:
Dan 2024-12-02 09:44:28 -05:00
parent 954ff4e124
commit 83a9feedbe
3 changed files with 17 additions and 17 deletions

View file

@ -77,8 +77,8 @@ class ProcessState(object):
commands.putreg()
commands.putmem('0x{:x}'.format(util.get_pc()),
"1", display_result=False)
commands.putmem('0x{:x}'.format(util.get_sp()),
"1", display_result=False)
commands.putmem('0x{:x}'.format(util.get_sp()-1),
"2", display_result=False)
commands.put_frames()
self.visited.add(thread)
frame = util.selected_frame()