diff options
author | Greg Clayton <gclayton@apple.com> | 2014-07-11 22:41:30 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-07-11 22:41:30 +0000 |
commit | bca7db71778750687c74ef6490525a1952ce6a33 (patch) | |
tree | e409cd51510cb447c7bba3be0e71ece709b28616 | |
parent | 04b444913be92557cfd37170878755c72451b11f (diff) | |
download | bcm5719-llvm-bca7db71778750687c74ef6490525a1952ce6a33.tar.gz bcm5719-llvm-bca7db71778750687c74ef6490525a1952ce6a33.zip |
Don't use "lldb." global variables in LLDB commands.
llvm-svn: 212852
-rwxr-xr-x | lldb/examples/python/stacks.py | 5 |
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: |