<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 --- - LLDB expression evaluator does not demangle C++ names on Windows"
   href="http://llvm.org/bugs/show_bug.cgi?id=22177">22177</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB expression evaluator does not demangle C++ names on Windows
          </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>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@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ted.woodward@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13656" name="attach_13656" title="testcase">attachment 13656</a> <a href="attachment.cgi?id=13656&action=edit" title="testcase">[details]</a></span>
testcase

Build the attached file. Note that I had to build it on Linux because clang on
Windows didn't produce a native executable with symbols that LLDB could read.

clang -g expr_test.cpp -o expr_test.elf

Run Windows LLDB on expr_test.elf, and run these commands:

p main
p foo
p _Z3fooi

With Windows LLDB I see:
(lldb) p main
(int (*)()) $0 = 0x00000000004004f0
(lldb) p foo
error: use of undeclared identifier 'foo'
error: 1 errors parsing expression
(lldb) p _Z3fooi
(int (*)(int)) $1 = 0x00000000004004d0

With Linux LLDB I see:
(lldb) p main
(int (*)()) $0 = 0x00000000004004f0
(lldb) p foo
(int (*)(int)) $1 = 0x00000000004004d0
(lldb) p _Z3fooi
(int (*)(int)) $2 = 0x00000000004004d0


Windows LLDB is not correctly demangling _Z3fooi and resolving that as foo.</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>