From ecb68a43c05183b9d22763948f4ca933c2a22ed2 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 9 Aug 2024 21:49:28 -0400 Subject: [PATCH] Add address to error --- IDEHelper/DbgExprEvaluator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/DbgExprEvaluator.cpp b/IDEHelper/DbgExprEvaluator.cpp index 27eece91..e74726e5 100644 --- a/IDEHelper/DbgExprEvaluator.cpp +++ b/IDEHelper/DbgExprEvaluator.cpp @@ -4221,7 +4221,7 @@ bool DbgExprEvaluator::StoreValue(DbgTypedValue& ptr, DbgTypedValue& value, BfAs tempVal |= value.mUInt64 << dbgBitfieldType->mPosition; if (!mDebugger->WriteMemory(ptr.mSrcAddress, &tempVal, ptr.mType->GetByteCount())) - mPassInstance->Fail("Failed to write to memory"); + mPassInstance->Fail(StrFormat("Failed to write to memory address %@", ptr.mSrcAddress)); if ((dbgBitfieldType->mTypeParam->IsSigned()) && ((value.mUInt64 & (1LL << (dbgBitfieldType->mLength - 1))) != 0)) { @@ -4232,7 +4232,7 @@ bool DbgExprEvaluator::StoreValue(DbgTypedValue& ptr, DbgTypedValue& value, BfAs else { if (!mDebugger->WriteMemory(ptr.mSrcAddress, &value.mInt8, ptr.mType->GetByteCount())) - mPassInstance->Fail("Failed to write to memory"); + mPassInstance->Fail(StrFormat("Failed to write to memory address %@", ptr.mSrcAddress)); } } else