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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev