New rangeSteppingEnabled server config param
This commit is contained in:
@@ -13,6 +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
|
||||||
|
|
||||||
insight:
|
insight:
|
||||||
activateOnStartup: false
|
activateOnStartup: false
|
||||||
|
|||||||
@@ -30,5 +30,17 @@ namespace DebugServer::Gdb
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (debugServerConfig.debugServerNode["rangeSteppingEnabled"]) {
|
||||||
|
if (YamlUtilities::isCastable<bool>(debugServerConfig.debugServerNode["rangeSteppingEnabled"])) {
|
||||||
|
this->rangeSteppingEnabled = debugServerConfig.debugServerNode["rangeSteppingEnabled"].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."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,15 @@ namespace DebugServer::Gdb
|
|||||||
*/
|
*/
|
||||||
std::string listeningAddress = "127.0.0.1";
|
std::string listeningAddress = "127.0.0.1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Controls Bloom's range stepping functionality.
|
||||||
|
*
|
||||||
|
* If this is set to true, the GDB server will service "vCont;r" commands from GDB.
|
||||||
|
*
|
||||||
|
* This parameter is optional. If not specified, the default value set here will be used.
|
||||||
|
*/
|
||||||
|
bool rangeSteppingEnabled = true;
|
||||||
|
|
||||||
explicit GdbDebugServerConfig(const DebugServerConfig& debugServerConfig);
|
explicit GdbDebugServerConfig(const DebugServerConfig& debugServerConfig);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user