[Lldb-commits] [lldb] Complete the Implementation of DAP modules explorer. (PR #139934)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Wed May 14 12:49:32 PDT 2025


================
@@ -416,8 +416,11 @@ llvm::json::Value CreateModule(lldb::SBTarget &target, lldb::SBModule &module,
   } else {
     object.try_emplace("symbolStatus", "Symbols not found.");
   }
-  std::string loaded_addr = std::to_string(
-      module.GetObjectFileHeaderAddress().GetLoadAddress(target));
+  std::string loaded_addr;
+  llvm::raw_string_ostream os_hex(loaded_addr);
+  os_hex << llvm::format_hex(
+      module.GetObjectFileHeaderAddress().GetLoadAddress(target),
+      sizeof(lldb::addr_t));
----------------
ashgti wrote:

https://github.com/microsoft/debug-adapter-protocol/issues/424 was filed to clarify how the address range is supposed to be represented. It hasn't had any movement recently, so we could ping the issue to see if the folks that work on the DAP have any more recent thoughts.

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


More information about the lldb-commits mailing list