summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/stacks.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/examples/python/stacks.py')
-rwxr-xr-xlldb/examples/python/stacks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/examples/python/stacks.py b/lldb/examples/python/stacks.py
index aee8c916a19..06907e159d7 100755
--- a/lldb/examples/python/stacks.py
+++ b/lldb/examples/python/stacks.py
@@ -16,8 +16,11 @@ def stack_frames(debugger, command, result, dict):
except:
return
+ target = debugger.GetSelectedTarget()
+ process = target.GetProcess()
+
frame_info = {}
- for thread in lldb.process:
+ for thread in process:
last_frame = None
print "thread %u" % (thread.id)
for frame in thread.frames:
OpenPOWER on IntegriCloud