https://bugs.llvm.org/show_bug.cgi?id=48323
Bug ID: 48323
Summary: Attempting to redefine a variable fails silently
Product: lldb
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: rgovos...@gmail.com
CC: jdevliegh...@apple.com, llvm-b...@lists.llvm.org
This behavior is surprising:
(lldb) expr int $x = 3
(lldb) expr int $x = 4
(lldb) expr $x
(int) $x = 3
This should either:
(i) emit an error that $x cannot be redefined, or
(ii) redefine $x such that the last line outputs `$x = 4`
I would prefer (ii).
lldb-1200.0.41 running on macOS Big Sur (20B29)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev