[lldb-dev] [Bug 48323] New: Attempting to redefine a variable fails silently
via lldb-dev
lldb-dev at lists.llvm.org
Sat Nov 28 11:02:50 PST 2020
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 at lists.llvm.org
Reporter: rgovostes at gmail.com
CC: jdevlieghere at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20201128/770f4b91/attachment.html>
More information about the lldb-dev
mailing list