Renaming rangeSteppingEnabled GDB server config param to rangeStepping
This commit is contained in:
@@ -13,7 +13,7 @@ environments:
|
|||||||
name: "avr-gdb-rsp"
|
name: "avr-gdb-rsp"
|
||||||
ipAddress: "127.0.0.1"
|
ipAddress: "127.0.0.1"
|
||||||
port: 1442
|
port: 1442
|
||||||
rangeSteppingEnabled: true
|
rangeStepping: true
|
||||||
|
|
||||||
insight:
|
insight:
|
||||||
activateOnStartup: false
|
activateOnStartup: false
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ namespace DebugServer::Gdb::AvrGdb
|
|||||||
return std::make_unique<VContStepExecution>(rawPacket);
|
return std::make_unique<VContStepExecution>(rawPacket);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->debugServerConfig.rangeSteppingEnabled) {
|
if (this->debugServerConfig.rangeStepping) {
|
||||||
if (rawPacketString.find("vCont;r") == 0) {
|
if (rawPacketString.find("vCont;r") == 0) {
|
||||||
return std::make_unique<VContRangeStep>(rawPacket);
|
return std::make_unique<VContRangeStep>(rawPacket);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
|||||||
|
|
||||||
// Respond with a SupportedFeaturesResponse packet, listing all supported GDB features by Bloom
|
// Respond with a SupportedFeaturesResponse packet, listing all supported GDB features by Bloom
|
||||||
debugSession.connection.writePacket(ResponsePackets::ResponsePacket(
|
debugSession.connection.writePacket(ResponsePackets::ResponsePacket(
|
||||||
debugSession.serverConfig.rangeSteppingEnabled
|
debugSession.serverConfig.rangeStepping
|
||||||
? "vCont;c;C;s;S;r"
|
? "vCont;c;C;s;S;r"
|
||||||
: "vCont;c;C;s;S"
|
: "vCont;c;C;s;S"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -31,14 +31,14 @@ namespace DebugServer::Gdb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debugServerConfig.debugServerNode["rangeSteppingEnabled"]) {
|
if (debugServerConfig.debugServerNode["rangeStepping"]) {
|
||||||
if (YamlUtilities::isCastable<bool>(debugServerConfig.debugServerNode["rangeSteppingEnabled"])) {
|
if (YamlUtilities::isCastable<bool>(debugServerConfig.debugServerNode["rangeStepping"])) {
|
||||||
this->rangeSteppingEnabled = debugServerConfig.debugServerNode["rangeSteppingEnabled"].as<bool>();
|
this->rangeStepping = debugServerConfig.debugServerNode["rangeStepping"].as<bool>();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Logger::error(
|
Logger::error(
|
||||||
"Invalid GDB debug server config parameter ('rangeSteppingEnabled') provided - value must be "
|
"Invalid GDB debug server config parameter ('rangeStepping') provided - value must be castable to "
|
||||||
"castable to a boolean. The parameter will be ignored."
|
"a boolean. The parameter will be ignored."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace DebugServer::Gdb
|
|||||||
*
|
*
|
||||||
* This parameter is optional. If not specified, the default value set here will be used.
|
* 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);
|
explicit GdbDebugServerConfig(const DebugServerConfig& debugServerConfig);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user