Tidying
This commit is contained in:
@@ -25,13 +25,6 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
|||||||
throw Exception("Unexpected VContRangeStep packet size");
|
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 commandData = std::string(this->data.begin() + 7, this->data.end());
|
||||||
|
|
||||||
const auto delimiterPosition = commandData.find(',');
|
const auto delimiterPosition = commandData.find(',');
|
||||||
@@ -183,8 +176,9 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
|||||||
* destination address.
|
* destination address.
|
||||||
*/
|
*/
|
||||||
Logger::debug(
|
Logger::debug(
|
||||||
"Intercepting CCPF instruction (\"" + instruction->name + "\") at destination byte address "
|
"Intercepting destination byte address 0x" + StringService::toHex(*destinationAddress)
|
||||||
"0x" + StringService::toHex(*destinationAddress)
|
+ " of CCPF instruction (\"" + instruction->name + "\") at byte address 0x"
|
||||||
|
+ StringService::toHex(instructionAddress)
|
||||||
);
|
);
|
||||||
rangeSteppingSession.interceptedAddresses.insert(*destinationAddress);
|
rangeSteppingSession.interceptedAddresses.insert(*destinationAddress);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -456,8 +456,8 @@ namespace TargetController
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TargetControllerComponent::acquireHardware() {
|
void TargetControllerComponent::acquireHardware() {
|
||||||
auto debugToolName = this->environmentConfig.debugToolConfig.name;
|
const auto& debugToolName = this->environmentConfig.debugToolConfig.name;
|
||||||
auto targetName = this->environmentConfig.targetConfig.name;
|
const auto& targetName = this->environmentConfig.targetConfig.name;
|
||||||
|
|
||||||
static const auto supportedDebugTools = this->getSupportedDebugTools();
|
static const auto supportedDebugTools = this->getSupportedDebugTools();
|
||||||
static const auto supportedTargets = this->getSupportedTargets();
|
static const auto supportedTargets = this->getSupportedTargets();
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ namespace Targets
|
|||||||
TargetMemoryType programMemoryType;
|
TargetMemoryType programMemoryType;
|
||||||
|
|
||||||
TargetDescriptor(
|
TargetDescriptor(
|
||||||
std::string id,
|
const std::string& id,
|
||||||
std::string name,
|
const std::string& name,
|
||||||
std::string vendorName,
|
const std::string& vendorName,
|
||||||
std::map<TargetMemoryType, TargetMemoryDescriptor> memoryDescriptorsByType,
|
const std::map<TargetMemoryType, TargetMemoryDescriptor>& memoryDescriptorsByType,
|
||||||
std::map<TargetRegisterDescriptorId, TargetRegisterDescriptor> registerDescriptorsById,
|
const std::map<TargetRegisterDescriptorId, TargetRegisterDescriptor>& registerDescriptorsById,
|
||||||
std::vector<TargetVariant> variants,
|
const std::vector<TargetVariant>& variants,
|
||||||
TargetMemoryType programMemoryType
|
TargetMemoryType programMemoryType
|
||||||
)
|
)
|
||||||
: name(name)
|
: name(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user