<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 11px; color: rgb(79, 129, 135);" class="">When using "</span><font color="#4f8187" class=""><span style="font-size: 11px;" class="">settings set target.source-map", when we try to set breakpoints by file and line, we try to undo any source remapping we did so we can set the breakpoint correctly:</span></font></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="color: #4f8187" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="color: #4f8187" class="">BreakpointSP</span> <span style="color: #4f8187" class="">Target</span>::CreateBreakpoint(<span style="color: #ba2da2" class="">const</span> <span style="color: #4f8187" class="">FileSpecList</span> *containingModules,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #ba2da2" class="">const</span> <span style="color: #4f8187" class="">FileSpec</span> &file, <span style="color: #703daa" class="">uint32_t</span> line_no,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #4f8187" class="">lldb</span>::<span style="color: #4f8187" class="">addr_t</span> offset,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #4f8187" class="">LazyBool</span> check_inlines,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #4f8187" class="">LazyBool</span> skip_prologue, <span style="color: #ba2da2" class="">bool</span> internal,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #ba2da2" class="">bool</span> hardware,</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                      <span style="color: #4f8187" class="">LazyBool</span> move_to_nearest_code) {</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">  <span style="color: #4f8187" class="">FileSpec</span> remapped_file;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">  <span style="color: #4f8187" class="">ConstString</span> remapped_path;</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; color: rgb(49, 89, 93); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">  </span><span style="color: #ba2da2" class="">if</span><span style="color: #000000" class=""> (</span>GetSourcePathMap<span style="color: #000000" class="">().</span>ReverseRemapPath<span style="color: #000000" class="">(</span><span style="color: #4f8187" class="">ConstString</span><span style="color: #000000" class="">(file.</span>GetPath<span style="color: #000000" class="">().</span><span style="color: #3e1e81" class="">c_str</span><span style="color: #000000" class="">()),</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">                                          remapped_path))</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">    remapped_file.<span style="color: #31595d" class="">SetFile</span>(remapped_path.<span style="color: #31595d" class="">AsCString</span>(), <span style="color: #ba2da2" class="">true</span>);</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; color: rgb(186, 45, 162); background-color: rgb(255, 255, 255);" class=""><span style="color: #000000" class="">  </span>else</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; background-color: rgb(255, 255, 255);" class="">    remapped_file = file;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class="">Note that the "<span style="font-size: 11px;" class="">remapped_file.</span><span style="font-size: 11px; color: rgb(49, 89, 93);" class="">SetFile</span><span style="font-size: 11px;" class="">(remapped_path.</span><span style="font-size: 11px; color: rgb(49, 89, 93);" class="">AsCString</span><span style="font-size: 11px;" class="">(), </span><span style="font-size: 11px; color: rgb(186, 45, 162);" class="">true</span><span style="font-size: 11px;" class="">);" is saying to resolve the path. I don't believe we want this path to resolve itself right?</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><span style="font-size: 11px;" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><span style="font-size: 11px;" class="">I am currently running issues when using this with:</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><span style="font-size: 11px;" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><span style="font-family: Helvetica; font-size: 11px;" class="">(lldb) </span><font face="Helvetica" class=""><span style="font-size: 11px;" class="">settings set target.source-map ./ /Users/me/source</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><font face="Helvetica" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><font face="Helvetica" class=""><span style="font-size: 11px;" class="">The debug info has all of the compilation directories set to "." and the resolving the path will cause the current working directory to be used when resolving the path and then we can't set breakpoints because the resolved path doesn't match. Any objections if I change the second argument to false so it doesn't resolve? I can't imagine we would want this reverse mapping to resolve??</span></font></div><div style="margin: 0px; font-stretch: normal; line-height: normal; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Helvetica; background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div></body></html>