https://llvm.org/bugs/show_bug.cgi?id=30522
Bug ID: 30522 Summary: unresolved breakpoint via c++ api on windows Product: lldb Version: 3.9 Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: lldb-dev@lists.llvm.org Reporter: cc.t...@gmail.com CC: llvm-b...@lists.llvm.org Classification: Unclassified When attach to process through SBTarget::AttachToProcessWithID(Name) installed breakpoints is unresolved. 1) Test program prog.cpp: #include <cstdio> void doSomething(void); void doSomething(void) { int loop = 0; loop += 1; loop += 2; loop += 3; } int main(void)` { printf("start \n"); while(1) { doSomething(); } return 0; } 2) Compile it gcc prog.cpp -g -O0 3) Attach to process through SBTarget::AttachToProcessWithID.. 4) Create breakpoint m_debugData->currentTarget.BreakpointCreateByLocation("prog.cpp", 7); 5) Print exsisting breakpoints 1.1: where = a.exe`doSomething() + 6 at prog.cpp:7, address = a.exe[0x00401356], unresolved, hit count = 0 More details here http://stackoverflow.com/questions/39637207/lldb-unresolved-breakpoint-via-c-api -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev