[Lldb-commits] [lldb] [lldb-dap] Implement value locations for function pointers (PR #104589)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 18 07:53:38 PDT 2024
================
@@ -1611,16 +1624,17 @@ void request_evaluate(const llvm::json::Object &request) {
VariableDescription desc(value);
EmplaceSafeString(body, "result", desc.GetResult(context));
EmplaceSafeString(body, "type", desc.display_type_name);
- if (value.MightHaveChildren()) {
- auto variableReference = g_dap.variables.InsertVariable(
- value, /*is_permanent=*/context == "repl");
- body.try_emplace("variablesReference", variableReference);
- } else {
+ auto var_ref = g_dap.variables.InsertVariable(
+ value, /*is_permanent=*/context == "repl");
----------------
vogelsgesang wrote:
Solved this slightly differently, without a lambda. Please let me know if you are also fine with the current solution
https://github.com/llvm/llvm-project/pull/104589
More information about the lldb-commits
mailing list