[lldb-dev] [Bug 43707] New: Constructing objects in expressions doesn't work on Windows

via lldb-dev lldb-dev at lists.llvm.org
Thu Oct 17 13:36:00 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43707

            Bug ID: 43707
           Summary: Constructing objects in expressions doesn't work on
                    Windows
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: teemperor at gmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Trying to construct an object in the expression parser doesn't seem to work on
Windows.

Simple reproducer is in
test/commands/expression/ignore-artificial-constructors:

```
struct Foo {
  // Triggers that we emit an artificial constructor for Foo.
  virtual ~Foo() = default;
};

int main() {
  Foo f;
  // Try to construct foo in our expression.
  return 0; //%self.expect("expr Foo()", substrs=["(Foo) $0 = {}"])
}
```

This fails on Windows with the following error:
```
AssertionError: False is not True : Command 'expr Foo()

Error output:

error: The expression could not be prepared to run in the target

' returns successfully
```

-- 
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/20191017/0d4b37bb/attachment.html>


More information about the lldb-dev mailing list