[Lldb-commits] [lldb] r141340 - /lldb/trunk/examples/python/symbolicate-crash.py
Johnny Chen
johnny.chen at apple.com
Thu Oct 6 16:36:01 PDT 2011
Author: johnny
Date: Thu Oct 6 18:36:00 2011
New Revision: 141340
URL: http://llvm.org/viewvc/llvm-project?rev=141340&view=rev
Log:
Allow the crash log file path to contain an initial tilde component.
Modified:
lldb/trunk/examples/python/symbolicate-crash.py
Modified: lldb/trunk/examples/python/symbolicate-crash.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/symbolicate-crash.py?rev=141340&r1=141339&r2=141340&view=diff
==============================================================================
--- lldb/trunk/examples/python/symbolicate-crash.py (original)
+++ lldb/trunk/examples/python/symbolicate-crash.py Thu Oct 6 18:36:00 2011
@@ -99,7 +99,8 @@
self.images = list()
self.crashed_thread_idx = -1
self.version = -1
- f = open(self.path)
+ # With possible initial component of ~ or ~user replaced by that user's home directory.
+ f = open(os.path.expanduser(self.path))
self.file_lines = f.read().splitlines()
parse_mode = PARSE_MODE_NORMAL
thread = None
More information about the lldb-commits
mailing list