This commit is contained in:
Nav
2025-03-07 19:12:41 +00:00
parent 58dce1bf41
commit 2afca42f1d
2 changed files with 3 additions and 5 deletions

View File

@@ -141,8 +141,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
Logger::debug(
"Failed to decode AVR8 opcode at byte address 0x" + StringService::toHex(instructionAddress)
+ " - the instruction proceeds a BREAK instruction, so the decode failure was "
"ignored."
+ " - the instruction proceeds a BREAK instruction, so the decode failure was ignored."
);
previousInstruction = nullptr;

View File

@@ -570,8 +570,6 @@ namespace DebugToolDrivers::Wch
+ ") has resulted in a segment boundary breach"
);
alignedAddressRange.endAddress -= this->programmingBlockSize;
/*
* This function isn't designed to handle instances where the entire write operation needs to be
* delegated. In such instances, this function should not be called at all. The following assertion
@@ -580,8 +578,9 @@ namespace DebugToolDrivers::Wch
* The WchLinkDebugInterface::fullBlockWriteCompatible() function will determine if at least part of
* the operation can be performed using the full block write method.
*/
assert(alignedAddressRange.intersectsWith(addressRange));
assert(alignedAddressRange.size() > this->programmingBlockSize);
alignedAddressRange.endAddress -= this->programmingBlockSize;
delegatedBytes = addressRange.endAddress - alignedAddressRange.endAddress;
Logger::debug(