[Lldb-commits] [lldb] r212852 - Don't use "lldb." global variables in LLDB commands.
Greg Clayton
gclayton at apple.com
Fri Jul 11 15:41:30 PDT 2014
Author: gclayton
Date: Fri Jul 11 17:41:30 2014
New Revision: 212852
URL: http://llvm.org/viewvc/llvm-project?rev=212852&view=rev
Log:
Don't use "lldb." global variables in LLDB commands.
Modified:
lldb/trunk/examples/python/stacks.py
Modified: lldb/trunk/examples/python/stacks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/stacks.py?rev=212852&r1=212851&r2=212852&view=diff
==============================================================================
--- lldb/trunk/examples/python/stacks.py (original)
+++ lldb/trunk/examples/python/stacks.py Fri Jul 11 17:41:30 2014
@@ -16,8 +16,11 @@ def stack_frames(debugger, command, resu
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:
More information about the lldb-commits
mailing list