Tidying
This commit is contained in:
@@ -222,11 +222,9 @@ namespace Bloom::DebugServers::Gdb
|
|||||||
const auto memoryType = this->getMemoryTypeFromGdbAddress(packet.startAddress);
|
const auto memoryType = this->getMemoryTypeFromGdbAddress(packet.startAddress);
|
||||||
|
|
||||||
if (memoryType == Targets::TargetMemoryType::FLASH) {
|
if (memoryType == Targets::TargetMemoryType::FLASH) {
|
||||||
Logger::error(
|
throw Exception(
|
||||||
"GDB client requested a flash memory write - This is not currently supported by Bloom."
|
"GDB client requested a flash memory write - This is not currently supported by Bloom."
|
||||||
);
|
);
|
||||||
this->clientConnection->writePacket(ResponsePacket({'E', '0', '1'}));
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto startAddress = this->removeMemoryTypeIndicatorFromGdbAddress(packet.startAddress);
|
const auto startAddress = this->removeMemoryTypeIndicatorFromGdbAddress(packet.startAddress);
|
||||||
@@ -235,7 +233,7 @@ namespace Bloom::DebugServers::Gdb
|
|||||||
this->clientConnection->writePacket(ResponsePacket({'O', 'K'}));
|
this->clientConnection->writePacket(ResponsePacket({'O', 'K'}));
|
||||||
|
|
||||||
} catch (const Exception& exception) {
|
} catch (const Exception& exception) {
|
||||||
Logger::error("Failed to write memory two target - " + exception.getMessage());
|
Logger::error("Failed to write memory to target - " + exception.getMessage());
|
||||||
this->clientConnection->writePacket(ResponsePacket({'E', '0', '1'}));
|
this->clientConnection->writePacket(ResponsePacket({'E', '0', '1'}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
|||||||
if (!this->updateDwenFuseBit) {
|
if (!this->updateDwenFuseBit) {
|
||||||
throw TargetOperationFailure(
|
throw TargetOperationFailure(
|
||||||
"Failed to activate debugWire physical interface - check target connection and DWEN fuse "
|
"Failed to activate debugWire physical interface - check target connection and DWEN fuse "
|
||||||
"bit. Bloom can set the DWEN fuse bit automatically. For instructions on enabling this function,"
|
"bit. Bloom can manage the DWEN fuse bit automatically. For instructions on enabling this "
|
||||||
" see " + Paths::homeDomainName() + "/docs/debugging-avr-debugwire"
|
"function, see " + Paths::homeDomainName() + "/docs/debugging-avr-debugwire"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user