skuznetsov wrote:
> > @clayborg Thank you, Greg! Lots of that info is not described anywhere, no
> > wonder I missed it. Let me try your fixes in my provider, and I will get
> > back to you.
> > By some reason my provider works in CLI lldb, but not in lldb-dap, but I
> > will check if your sug
skuznetsov wrote:
@clayborg Thank you, Greg!
Lots of that info is not described anywhere, no wonder I missed it.
Let me try your fixes in my provider, and I will get back to you.
By some reason my provider works in CLI lldb, but not in lldb-dap, but I will
check if your suggestions will help to
skuznetsov wrote:
> Can you post a copy of a the python code for the synthetic child provider you
> are creating and also how you are registering it with LLDB?
Here it is:
```
# Hash(K,V) class support providers
class CrystalHashSyntheticProvider:
def __init__(self, valobj, internal_dict):
skuznetsov wrote:
> src="https://private-user-images.githubusercontent.com/4421997/391664786-b7dbb80c-5f7d-4dd8-a0db-d0b8fe10cf21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxNjQxODMsIm5iZiI6M
skuznetsov wrote:
@clayborg This is what puzzles me, too.
As I provided the examples in the Discourse thread, it works in the CLI lldb
but not when used in lldb-dap.
It works only if it is dereferenced.
https://github.com/llvm/llvm-project/pull/117755
___
https://github.com/skuznetsov edited
https://github.com/llvm/llvm-project/pull/117755
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
@@ -4028,6 +4032,9 @@ void request_variables(DAP &dap, const llvm::json::Object
&request) {
dap.enable_synthetic_child_debugging,
/*is_name_duplicated=*/false, custom_name));
};
+ if (variable.GetType().IsPointerType() ||
variable.GetType().
https://github.com/skuznetsov created
https://github.com/llvm/llvm-project/pull/117755
This bug fix for the situation that was extensively discussed at LLVM Discourse
thread: https://discourse.llvm.org/t/synthetic-data-providers-and-lldb-dap/
>From 82a3bc3aaf57f25a1041cda4082b24bd8cdf8919 Mon