================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits