[Lldb-commits] [PATCH] D57467: Fix use of non-existing variable in crashlog.py

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 30 12:55:55 PST 2019

shafik created this revision.
shafik added reviewers: aprantl, jingham.
Herald added a reviewer: serge-sans-paille.

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.



Index: examples/python/crashlog.py
--- examples/python/crashlog.py
+++ examples/python/crashlog.py
@@ -260,7 +260,7 @@
             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):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57467.184354.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190130/79d287ab/attachment-0001.bin>

More information about the lldb-commits mailing list