================
@@ -9,22 +9,43 @@
#ifndef LLDB_TOOLS_LLDB_DAP_VARIABLES_H
#define LLDB_TOOLS_LLDB_DAP_VARIABLES_H
+#include "Protocol/ProtocolTypes.h"
#include "lldb/API/SBValue.h"
#include "lldb/API/SBValueList.h"
#include "llvm/ADT/DenseMap.h"
+#include <map>
+#include <utility>
-#define VARREF_FIRST_VAR_IDX (int64_t)4
-#define VARREF_LOCALS (int64_t)1
-#define VARREF_GLOBALS (int64_t)2
-#define VARREF_REGS (int64_t)3
+#define VARREF_FIRST_VAR_IDX (int64_t)1
namespace lldb_dap {
-struct Variables {
- lldb::SBValueList locals;
- lldb::SBValueList globals;
- lldb::SBValueList registers;
+enum ScopeKind { Locals, Globals, Registers };
----------------
ashgti wrote:
To clarify, this is in regards to the naming conventions of the enum values. In
lldb they should look like:
```
enum ScopeKind: unsigned {
eScopeKindLocals,
eScopeKindGlobals,
eScopeKindRegisters
};
```
https://github.com/llvm/llvm-project/pull/124232
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits