[Lldb-commits] [lldb] r352772 - Fix use of non-existing variable in crashlog.py

Shafik Yaghmour via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 31 09:33:17 PST 2019


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




More information about the lldb-commits mailing list