[Lldb-commits] [lldb] [lldb-dap] Emit more structured info along with variables (PR #75244)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 14 11:58:59 PST 2023


================
@@ -153,10 +153,18 @@ def do_test_scopes_variables_setVariable_evaluate(
         buffer_children = make_buffer_verify_dict(0, 32)
         verify_locals = {
             "argc": {
-                "equals": {"type": "int", "value": "1"},
-                "declaration": {
-                    "equals": {"line": 12, "column": 14},
-                    "contains": {"path": ["lldb-dap", "variables", "main.cpp"]},
+                "equals": {
+                    "type": "int",
+                    "value": "1",
+                },
+                "$__lldb_extensions": {
+                    "equals": {
+                        "lldbValue": "1",
----------------
clayborg wrote:

`rawValue` or just `value` now that this is in the `$__lldb_extensions` key? I assume this is the raw `SBValue::GetValue()` only here? Does this not show up if there is no value (structs and class instances have no values). We could mark it as optional if it isn't already

https://github.com/llvm/llvm-project/pull/75244


More information about the lldb-commits mailing list