Issue 183578
Summary [lldb] SBValue clone results in an incorrect type summary
Labels new issue
Assignees
Reporter ashgti
    In the lldb-dap test suite, I found an issue when I use `SBValue::Clone` where it seems the cloned value loses the type summary.

In this case its happening in https://github.com/llvm/llvm-project/blob/af15474262100ade9a8fcfd05f9e05c7ba23ff8c/lldb/test/API/tools/lldb-dap/variables/children/main.cpp#L18 

```bash
$ lldb /Users/harjohn/Projects/lldb-build/lldb-test-build.noindex/tools/lldb-dap/variables/children/TestDAP_variables_children/a.out
(lldb) break set -n test_return_variable_with_children
(lldb) r
(lldb) thread step-out
(lldb) script
>>> rv = lldb.thread.return_value
>>> rv_clone = rv.Clone("(Return Value)")
>>> rv
(NonPrimitive) $0 = (buffer = "hello world!", x = 10, y = 20)
>>> rv_clone
(NonPrimitive) (Return Value) = (buffer = char[16] @ 0x00000008835a9ca0, x = 10, y = 20)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to