[Lldb-commits] [PATCH] D65611: [Driver] Expand the executable path in the target create output

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 7 09:20:53 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368182: [Driver] Expand the executable path in the target create output (authored by JDevlieghere, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D65611?vs=213640&id=213924#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65611/new/

https://reviews.llvm.org/D65611

Files:
  lldb/trunk/lit/Driver/TestTarget.test
  lldb/trunk/source/Commands/CommandObjectTarget.cpp


Index: lldb/trunk/lit/Driver/TestTarget.test
===================================================================
--- lldb/trunk/lit/Driver/TestTarget.test
+++ lldb/trunk/lit/Driver/TestTarget.test
@@ -0,0 +1,7 @@
+# Make sure lldb resolves the target path.
+# RUN: mkdir -p %t/foo
+# RUN: cd %t/foo
+# RUN: %clang %p/Inputs/hello.c -g -o a.out
+# RUN: %lldb -b a.out | FileCheck %s
+
+# CHECK: Current executable set to '{{.*}}foo{{[/\\\\]+}}a.out'
Index: lldb/trunk/source/Commands/CommandObjectTarget.cpp
===================================================================
--- lldb/trunk/source/Commands/CommandObjectTarget.cpp
+++ lldb/trunk/source/Commands/CommandObjectTarget.cpp
@@ -450,7 +450,8 @@
           }
         } else {
           result.AppendMessageWithFormat(
-              "Current executable set to '%s' (%s).\n", file_path,
+              "Current executable set to '%s' (%s).\n",
+              file_spec.GetPath().c_str(),
               target_sp->GetArchitecture().GetArchitectureName());
           result.SetStatus(eReturnStatusSuccessFinishNoResult);
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65611.213924.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190807/317992e6/attachment.bin>


More information about the lldb-commits mailing list