Don't use "lldb." global variables in LLDB commands.

llvm-svn: 212852
This commit is contained in:
Greg Clayton 2014-07-11 22:41:30 +00:00
parent 04b444913b
commit bca7db7177
1 changed files with 4 additions and 1 deletions

View File

@ -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: