<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 --- - 'image lookup' and 'frame info' disagree, image lookup is more right"
   href="http://llvm.org/bugs/show_bug.cgi?id=15719">15719</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'image lookup' and 'frame info' disagree, image lookup is more right
          </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>All
          </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>david.majnemer@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I compiled clang/llvm Release+Asserts r179146 using:
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix

Notice that in the following session the address of the function yields two
different source locations depending on how I asked lldb.
In this case, 'image lookup' is more correct than 'frame info'.
Notably, 'frame info' refers to line "236" while the file that it refers to
only has 172 lines.

$ lldb --version
LLDB-179.3

(lldb) image lookup --address 0x0000000100bf93a4
      Address: llc[0x0000000100bf93a4] (llc.__TEXT.__text + 12549284)
      Summary: llc`llvm::A64Imms::isLogicalImmBits(unsigned int, unsigned int,
unsigned long long&) + 20 at AArch64BaseInfo.cpp:1023
(lldb) frame info
frame #1: 0x0000000100b76090 llc`void
llvm::AArch64InstPrinter::printLogicalImmOperand<64u>(this=0x00000001029241a0,
MI=0x00007fff5fbfeba8, OpNum=2, O=0x00007fff5fbff608) + 64 at
AArch64InstPrinter.h:236</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>