[lldb-dev] [Bug 22177] New: LLDB expression evaluator does not demangle C++ names on Windows
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 9 12:49:02 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22177
Bug ID: 22177
Summary: LLDB expression evaluator does not demangle C++ names
on Windows
Product: lldb
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at cs.uiuc.edu
Reporter: ted.woodward at codeaurora.org
Classification: Unclassified
Created attachment 13656
--> http://llvm.org/bugs/attachment.cgi?id=13656&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150109/63f4ba10/attachment.html>
More information about the lldb-dev
mailing list