[Lldb-commits] [lldb] [lldb-server] Add accelerator plugin infrastructure for debugging hardware accelerators like gpus (PR #198907)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue May 26 02:37:10 PDT 2026
================
@@ -0,0 +1,27 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Utility/AcceleratorGDBRemotePackets.h"
+
+using namespace lldb_private;
+
+llvm::json::Value lldb_private::toJSON(const AcceleratorActions &data) {
+ return llvm::json::Object{
+ {"plugin_name", data.plugin_name},
+ {"session_name", data.session_name},
+ {"identifier", static_cast<int64_t>(data.identifier)},
----------------
DavidSpickett wrote:
I have not read the whole code yet, but - why static cast to int64_t can we not "just" store it in that form?
https://github.com/llvm/llvm-project/pull/198907
More information about the lldb-commits
mailing list