<html>
    <head>
      <base href="http://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 --- - Breakpoint reports invalid locations and breaks incorrectly"
   href="http://llvm.org/bugs/show_bug.cgi?id=18772">18772</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Breakpoint reports invalid locations and breaks incorrectly
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sheeftz@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have a very different behaviour of lldb and gdb on pretty common piece of
code:
GuiProfile.cpp fragment:

...
void ProfileNameEdit::OnShow()
{
    SetText(Profiles::current()->name); // this is 10th line
}
...

(lldb) b GuiProfile.cpp:10
Breakpoint 2: 33 locations.

(gdb) b GuiProfile.cpp:10
Breakpoint 1 at 0x6d6e8c: GuiProfile.cpp:10. (4 locations)

Note 33 vs 4 locations.

The actual problem is that lldb breakpoint breaks where it should not. It
breaks on unrelated line of unrelated file far away from actual code.</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>