Issue 146983
Summary SetKeepInMemory is not exposed on SBExpressionOptions which prevents saving persistent variables across expressions in the Python API
Labels new issue
Assignees
Reporter BlueFalconHD
    In the source for the `expr` command, LLDB sets the `SetKeepInMemory` flag on ExpressionOptions which allows something like:

```
(lldb) expr -l ObjC --
int (^$double)(int) = ^int(int num) {
return num*2;
};

(lldb) expr -l ObjC -- $double(2);
(int) $1 = 4
```

However, doing the same via the Python API is not possible, there is no switch on SBExpressionOptions to keep a variable saved for future expressions.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to