[Lldb-commits] [lldb] r155182 - /lldb/branches/lldb-platform-work/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Thu Apr 19 18:11:58 PDT 2012


Author: johnny
Date: Thu Apr 19 20:11:58 2012
New Revision: 155182

URL: http://llvm.org/viewvc/llvm-project?rev=155182&view=rev
Log:
Deal with test cases which do not specify an absolute pathname to the target program to be debugged
by always fetching the absolute pathname before doing the man-in-the-middle fiddling of the
"file target" command when dealing with remote-macosx situations.

These include inserting a "platform target-install" followed by the "file -P remote-path local-path"
commands.

Modified:
    lldb/branches/lldb-platform-work/test/lldbtest.py

Modified: lldb/branches/lldb-platform-work/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/test/lldbtest.py?rev=155182&r1=155181&r2=155182&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/test/lldbtest.py (original)
+++ lldb/branches/lldb-platform-work/test/lldbtest.py Thu Apr 19 20:11:58 2012
@@ -1121,7 +1121,8 @@
         if cmd.startswith("file ") and lldb.lldbtest_remote_sandbox:
             with recording(self, trace) as sbuf:
                 target = cmd.split("file ")[1]
-                print >> sbuf, "Found a file command, target=%s" % target
+                target = os.path.abspath(target)
+                print >> sbuf, "Found a file command, target (with absolute pathname)=%s" % target
                 fpath, fname = os.path.split(target)
                 parent_dir = os.path.split(fpath)[0]
                 platform_target_install_command = 'platform target-install %s %s' % (fpath, lldb.lldbtest_remote_sandbox)





More information about the lldb-commits mailing list