Author: shafik
Date: Thu Jan 31 09:33:17 2019
New Revision: 352772

URL: http://llvm.org/viewvc/llvm-project?rev=352772&view=rev
Log:
Fix use of non-existing variable in crashlog.py

Summary:
The method find_matching_slice(self) uses uuid_str on one of the paths but the 
variable does not exist and so this results in a NameError exception if we take 
that path.

Differential Revision: https://reviews.llvm.org/D57467

Modified:
    lldb/trunk/examples/python/crashlog.py

Modified: lldb/trunk/examples/python/crashlog.py
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/crashlog.py?rev=352772&r1=352771&r2=352772&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Thu Jan 31 09:33:17 2019
@@ -260,7 +260,7 @@ class CrashLog(symbolication.Symbolicato
             if not self.resolved_path:
                 self.unavailable = True
                 print("error\n    error: unable to locate '%s' with UUID %s"
-                      % (self.path, uuid_str))
+                      % (self.path, self.get_normalized_uuid_string()))
                 return False
 
         def locate_module_and_debug_symbols(self):


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to