https://github.com/s-barannikov created https://github.com/llvm/llvm-project/pull/204837
GetLoadAddress() returns an integer value, not a null-terminated string. >From ca484adc7a5e02315f1c755bb0c3a2e23b6ebdce Mon Sep 17 00:00:00 2001 From: Sergei Barannikov <[email protected]> Date: Fri, 19 Jun 2026 17:15:01 +0300 Subject: [PATCH] [lldb] Fix format string GetLoadAddress() returns an integer value, not a null-terminated string. --- lldb/source/Target/Target.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 3076cbd1b3781..ebb66b559841e 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -3087,8 +3087,8 @@ Target::ReadInstructions(const Address &start_addr, uint32_t count, force_live_memory, &load_addr); if (error.Fail()) - return llvm::createStringError( - error.AsCString("Target::ReadInstructions failed to read memory at %s"), + return llvm::createStringErrorV( + error.AsCString("Target::ReadInstructions failed to read memory at {}"), start_addr.GetLoadAddress(this)); const bool data_from_file = load_addr == LLDB_INVALID_ADDRESS; _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
