Renaming rangeSteppingEnabled GDB server config param to rangeStepping

This commit is contained in:
Nav
2023-09-21 00:30:21 +01:00
parent d7b59cac59
commit 611ad70d6b
5 changed files with 9 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ namespace DebugServer::Gdb::AvrGdb
return std::make_unique<VContStepExecution>(rawPacket);
}
if (this->debugServerConfig.rangeSteppingEnabled) {
if (this->debugServerConfig.rangeStepping) {
if (rawPacketString.find("vCont;r") == 0) {
return std::make_unique<VContRangeStep>(rawPacket);
}

View File

@@ -17,7 +17,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
// Respond with a SupportedFeaturesResponse packet, listing all supported GDB features by Bloom
debugSession.connection.writePacket(ResponsePackets::ResponsePacket(
debugSession.serverConfig.rangeSteppingEnabled
debugSession.serverConfig.rangeStepping
? "vCont;c;C;s;S;r"
: "vCont;c;C;s;S"
)

View File

@@ -31,14 +31,14 @@ namespace DebugServer::Gdb
}
}
if (debugServerConfig.debugServerNode["rangeSteppingEnabled"]) {
if (YamlUtilities::isCastable<bool>(debugServerConfig.debugServerNode["rangeSteppingEnabled"])) {
this->rangeSteppingEnabled = debugServerConfig.debugServerNode["rangeSteppingEnabled"].as<bool>();
if (debugServerConfig.debugServerNode["rangeStepping"]) {
if (YamlUtilities::isCastable<bool>(debugServerConfig.debugServerNode["rangeStepping"])) {
this->rangeStepping = debugServerConfig.debugServerNode["rangeStepping"].as<bool>();
} else {
Logger::error(
"Invalid GDB debug server config parameter ('rangeSteppingEnabled') provided - value must be "
"castable to a boolean. The parameter will be ignored."
"Invalid GDB debug server config parameter ('rangeStepping') provided - value must be castable to "
"a boolean. The parameter will be ignored."
);
}
}

View File

@@ -33,7 +33,7 @@ namespace DebugServer::Gdb
*
* This parameter is optional. If not specified, the default value set here will be used.
*/
bool rangeSteppingEnabled = true;
bool rangeStepping = true;
explicit GdbDebugServerConfig(const DebugServerConfig& debugServerConfig);
};