[llvm-bugs] [Bug 28709] New: lldb-mi: break-insert not working when using absolute paths
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 25 21:47:59 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28709
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 at lists.llvm.org
Reporter: malaperle at gmail.com
CC: llvm-bugs at 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")
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160726/90120d8c/attachment-0001.html>
More information about the llvm-bugs
mailing list