This commit is contained in:
Nav
2023-09-20 18:56:44 +01:00
parent be5e89456c
commit df5a141089
3 changed files with 18 additions and 24 deletions

View File

@@ -25,13 +25,6 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
throw Exception("Unexpected VContRangeStep packet size");
}
/*
* A single vCont packet can consist of multiple actions - we don't accommodate this ATM. We only focus on
* the first action in the packet.
*
* We also ignore the thread id (as it's not necessary here).
*/
const auto commandData = std::string(this->data.begin() + 7, this->data.end());
const auto delimiterPosition = commandData.find(',');
@@ -183,8 +176,9 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
* destination address.
*/
Logger::debug(
"Intercepting CCPF instruction (\"" + instruction->name + "\") at destination byte address "
"0x" + StringService::toHex(*destinationAddress)
"Intercepting destination byte address 0x" + StringService::toHex(*destinationAddress)
+ " of CCPF instruction (\"" + instruction->name + "\") at byte address 0x"
+ StringService::toHex(instructionAddress)
);
rangeSteppingSession.interceptedAddresses.insert(*destinationAddress);
}

View File

@@ -456,8 +456,8 @@ namespace TargetController
}
void TargetControllerComponent::acquireHardware() {
auto debugToolName = this->environmentConfig.debugToolConfig.name;
auto targetName = this->environmentConfig.targetConfig.name;
const auto& debugToolName = this->environmentConfig.debugToolConfig.name;
const auto& targetName = this->environmentConfig.targetConfig.name;
static const auto supportedDebugTools = this->getSupportedDebugTools();
static const auto supportedTargets = this->getSupportedTargets();

View File

@@ -25,12 +25,12 @@ namespace Targets
TargetMemoryType programMemoryType;
TargetDescriptor(
std::string id,
std::string name,
std::string vendorName,
std::map<TargetMemoryType, TargetMemoryDescriptor> memoryDescriptorsByType,
std::map<TargetRegisterDescriptorId, TargetRegisterDescriptor> registerDescriptorsById,
std::vector<TargetVariant> variants,
const std::string& id,
const std::string& name,
const std::string& vendorName,
const std::map<TargetMemoryType, TargetMemoryDescriptor>& memoryDescriptorsByType,
const std::map<TargetRegisterDescriptorId, TargetRegisterDescriptor>& registerDescriptorsById,
const std::vector<TargetVariant>& variants,
TargetMemoryType programMemoryType
)
: name(name)