Author: Dave Lee
Date: 2020-11-20T10:01:36-08:00
New Revision: dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4

URL: 
https://github.com/llvm/llvm-project/commit/dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4
DIFF: 
https://github.com/llvm/llvm-project/commit/dbcc69217a3f6b41cbf6e5b30c9a0ee9d3dfe0b4.diff

LOG: [lldb] Add examples and reword source-map help string

Update the help string for `target.source-map` to remove the use of the word
"duple" and to add examples. Additionally I rewrote parts with the goal of
making the description more concrete.

rdar://68736012

Differential Revision: https://reviews.llvm.org/D91742

Added: 
    

Modified: 
    lldb/source/Target/TargetProperties.td

Removed: 
    


################################################################################
diff  --git a/lldb/source/Target/TargetProperties.td 
b/lldb/source/Target/TargetProperties.td
index c624bc35d16e..627ed087384e 100644
--- a/lldb/source/Target/TargetProperties.td
+++ b/lldb/source/Target/TargetProperties.td
@@ -36,7 +36,7 @@ let Definition = "target" in {
     Desc<"Skip function prologues when setting breakpoints by name.">;
   def SourceMap: Property<"source-map", "PathMap">,
     DefaultStringValue<"">,
-    Desc<"Source path remappings are used to track the change of location 
between a source file when built, and where it exists on the current system.  
It consists of an array of duples, the first element of each duple is some part 
(starting at the root) of the path to the file when it was built, and the 
second is where the remainder of the original build hierarchy is rooted on the 
local system.  Each element of the array is checked in order and the first one 
that results in a match wins.">;
+    Desc<"Source path remappings apply substitutions to the paths of source 
files, typically needed to debug from a 
diff erent host than the one that built the target.  The source-map property 
consists of an array of pairs, the first element is a path prefix, and the 
second is its replacement.  The syntax is `prefix1 replacement1 prefix2 
replacement2...`.  The pairs are checked in order, the first prefix that 
matches is used, and that prefix is substituted with the replacement.  A common 
pattern is to use source-map in conjunction with the clang -fdebug-prefix-map 
flag.  In the build, use `-fdebug-prefix-map=/path/to/build_dir=.` to rewrite 
the host specific build directory to `.`.  Then for debugging, use `settings 
set target.source-map . /path/to/local_dir` to convert `.` to a valid local 
path.">;
   def ExecutableSearchPaths: Property<"exec-search-paths", "FileSpecList">,
     DefaultStringValue<"">,
     Desc<"Executable search paths to use when locating executable files whose 
paths don't match the local file system.">;


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to