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:


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to