<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - lldb-mi: break-insert not working when using absolute paths"
   href="https://llvm.org/bugs/show_bug.cgi?id=28709">28709</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb-mi: break-insert not working when using absolute paths
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>malaperle@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Using lldb-mi from HEAD
Mac OS X and Linux

When specifying breakpoints with -break-insert, if an absolute path is used,
lldb does not stop at the breakpoint. It seems that the breakpoint was not
really inserted even if the response ^done was issued.

Here is an example code with steps.

----main.cpp----

#include <iostream>

int main() {
  std::cout << "hello world!" << std::endl;
}

1. Compile this program with debugging symbols (clang++ -g main.cpp)
2. Start lldb-mi (lldb-mi ./a.out)
3. Add a breakpoint on line 4 with 

-break-insert /absolute/path/to/main.cpp:4

4. Run program (r)

The program exits normally (*stopped,reason="exited-normally")

If you try again with 

-break-insert main.cpp:4

Then it works correctly and it stops at the breakpoint
(*stopped,reason="breakpoint-hit")</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>