[Lldb-commits] [lldb] [lldb] Fix crash on creating string error (PR #212503)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 28 07:18:31 PDT 2026
================
@@ -3119,11 +3119,13 @@ Target::ReadInstructions(const Address &start_addr, uint32_t count,
ReadMemory(start_addr, data.GetBytes(), data.GetByteSize(), error,
force_live_memory, &load_addr);
- if (error.Fail())
+ if (error.Fail()) {
+ if (error.AsCString(/*default_error_str=*/nullptr))
----------------
Michael137 wrote:
So on failure, there are cases where `AsCString` returns a nullptr? Reading the implementation of `Status::AsCString`, it seems like that shouldn't happen
https://github.com/llvm/llvm-project/pull/212503
More information about the lldb-commits
mailing list