<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - LLDB is missing support for DW_OP_implicit_value dwarf operation"
   href="https://bugs.llvm.org/show_bug.cgi?id=46833">46833</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB is missing support for DW_OP_implicit_value dwarf operation
          </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>enhancement
          </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>sourav0311@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LLDB is missing support for DW_OP_implicit_value dwarf operation.

clang was also not supporting this, seems like in some cases
DW_op_implicit_value is indispensable. 

Support is added in clang with currently emission restricted for debugger
tunning GDB.

For more details please refer: <a href="https://reviews.llvm.org/D83560">https://reviews.llvm.org/D83560</a>

For a typical use case compiled as 
$tot-clang -ggdb -O1 test.c
or with gcc also
$gcc -ggdb -O1 test.c //GCC uses DW_OP_implicit_value ubiquitously for all
floating point constants.

Error log:
Process 24530 launched: '/hack/a.out' (x86_64)
Process 24530 stopped
* thread #1, name = 'a.out', stop reason = breakpoint 1.1
    frame #0: 0x000000000040112a a.out`main at implicit-float.c:3:2
   1    int main() {
   2            float a = 3.14f;
-> 3            printf("foo\n");
   4            a *= a;
   5            return 0;
   6    }
(lldb) p a
error: Couldn't materialize: couldn't get the value of variable a: Unhandled
opcode DW_OP_implicit_value in DWARFExpression
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression</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>