http://bugs.llvm.org/show_bug.cgi?id=32702
Bug ID: 32702
Summary: Top level expression evaluation fails with enum in
class
Product: lldb
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: tbergham...@google.com
CC: llvm-b...@lists.llvm.org
Created attachment 18309
--> http://bugs.llvm.org/attachment.cgi?id=18309&action=edit
Repro case
* Compile the attached source code using "clang -g c.cpp"
(lldb) target create a.out
Current executable set to 'a.out' (x86_64).
(lldb) breakpoint set -n main
Breakpoint 1: where = a.out`main + 20 at c.cpp:12, address = 0x0000000100000fa4
(lldb) run
Process 52932 launched: 'a.out' (x86_64)
Process 52932 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100000fa4 a.out`main at c.cpp:12
9 }
10
11 int main() {
-> 12 return foo(Foo::Baz);
13 }
(lldb) expression --top-level -- int bar2(Foo::Bar i) { return 1; }
Expected result:
Top level expression compiles successfully (and can be referenced from later
expressions)
Actual result:
error: no type named 'Bar' in 'Foo'
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev