forked from OSchip/llvm-project
Don't use "lldb." global variables in LLDB commands.
llvm-svn: 212852
This commit is contained in:
parent
04b444913b
commit
bca7db7177
lldb/examples/python
|
@ -16,8 +16,11 @@ def stack_frames(debugger, command, result, dict):
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
target = debugger.GetSelectedTarget()
|
||||||
|
process = target.GetProcess()
|
||||||
|
|
||||||
frame_info = {}
|
frame_info = {}
|
||||||
for thread in lldb.process:
|
for thread in process:
|
||||||
last_frame = None
|
last_frame = None
|
||||||
print "thread %u" % (thread.id)
|
print "thread %u" % (thread.id)
|
||||||
for frame in thread.frames:
|
for frame in thread.frames:
|
||||||
|
|
Loading…
Reference in New Issue