[llvm-bugs] [Bug 30522] New: unresolved breakpoint via c++ api on windows

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 25 22:28:10 PDT 2016


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 at lists.llvm.org
          Reporter: cc.tapa at gmail.com
                CC: llvm-bugs at 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 on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160926/9bf2c543/attachment-0001.html>


More information about the llvm-bugs mailing list