1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Add address to error

This commit is contained in:
Brian Fiete 2024-08-09 21:49:28 -04:00
parent cbcfffa02d
commit ecb68a43c0

View file

@ -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