================
@@ -166,6 +166,60 @@ bool fromJSON(const llvm::json::Value &value,
AcceleratorBreakpointHitResponse &data, llvm::json::Path path);
llvm::json::Value toJSON(const AcceleratorBreakpointHitResponse &data);
+struct AcceleratorSectionInfo {
+ /// Each name is looked up as a child of the previous one, e.g.
+ /// ["PT_LOAD[0]", ".text"].
+ std::vector<std::string> names;
+ uint64_t load_address = 0;
+};
+
+bool fromJSON(const llvm::json::Value &value, AcceleratorSectionInfo &data,
+ llvm::json::Path path);
+llvm::json::Value toJSON(const AcceleratorSectionInfo &data);
+
+struct AcceleratorDynamicLoaderLibraryInfo {
+ std::string pathname;
+ std::optional<std::string> uuid_str;
+ /// False means unload.
+ bool load = true;
+ /// Slides the whole object file. If unset, use \a loaded_sections or the
+ /// file addresses.
+ std::optional<uint64_t> load_address;
+ /// Used when sections load at independent addresses.
+ std::vector<AcceleratorSectionInfo> loaded_sections;
+ /// Where the image can be read in the native process.
----------------
DavidSpickett wrote:
Can you confirm what native means here? Is it the host process or the
accelerator. Neither seems more "native" to me but I haven't got much
experience with GPU terminology.
https://github.com/llvm/llvm-project/pull/214564
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits