<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 --- - unresolved breakpoint via c++ api on windows"
   href="https://llvm.org/bugs/show_bug.cgi?id=30522">30522</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>unresolved breakpoint via c++ api on windows
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>cc.tapa@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>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

<a href="http://stackoverflow.com/questions/39637207/lldb-unresolved-breakpoint-via-c-api">http://stackoverflow.com/questions/39637207/lldb-unresolved-breakpoint-via-c-api</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>