Commit 0678f43c authored by Ben Gamari's avatar Ben Gamari 🐢

gdb/find_refs: Fix STACK sizeI

parent 6301a1ef
......@@ -171,7 +171,7 @@ def find_containing_closure(inferior: gdb.Inferior,
elif int(info['type']) == closure.ClosureType.STACK:
stack = gdb.parse_and_eval('(StgStack *) %d' % start.addr())
size = int(stack['stack_size'])
if ptr.addr() < start.addr() + size:
if ptr.addr() < start.addr() + word_size*size:
return start
else:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment