http://llvm.org/bugs/show_bug.cgi?id=14805
Bug #: 14805
Summary: Evaluating expressions that contains allocation is
broken on Linux
Product: lldb
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
AssignedTo: lldb-dev@cs.uiuc.edu
ReportedBy: daniel.malea@intel.com
Classification: Unclassified
Evaluating an expression that requires allocating memory returns incorrect
results on Linux:
(lldb) expr char c[] = "foo"; c[0]
(char) $0 = 'z'
The above can be reproduced with the following command (from the test
directory):
python dotest.py --executable <path-to-lldb> expression_command/radar_9673664
It is possible this is related to bug 14437 (evalating expressions with
function calls).