[Lldb-commits] [lldb] 8c7b7dd - [lldb] Fix format string (#204837)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 19 07:44:17 PDT 2026
Author: Sergei Barannikov
Date: 2026-06-19T14:44:11Z
New Revision: 8c7b7dda518a28447660256c44c39d94d0c7e793
URL: https://github.com/llvm/llvm-project/commit/8c7b7dda518a28447660256c44c39d94d0c7e793
DIFF: https://github.com/llvm/llvm-project/commit/8c7b7dda518a28447660256c44c39d94d0c7e793.diff
LOG: [lldb] Fix format string (#204837)
GetLoadAddress() returns an integer value, not a null-terminated string.
Added:
Modified:
lldb/source/Target/Target.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 3076cbd1b3781..685fdae52fc7c 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -3087,8 +3087,9 @@ 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 {:x}"),
start_addr.GetLoadAddress(this));
const bool data_from_file = load_addr == LLDB_INVALID_ADDRESS;
More information about the lldb-commits
mailing list