[Bug 28709] New: lldb-mi: break-insert not working when using absolute paths

Bug ID 28709
Summary lldb-mi: break-insert not working when using absolute paths
Product lldb
Version unspecified
Hardware All
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter malaperle@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

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")

Ilia changed bug 28709