Implemented support for breakpoint caching in the GDB server

This commit is contained in:
Nav
2023-04-01 14:30:33 +01:00
parent 06b6c4460b
commit 3a74906541
13 changed files with 129 additions and 6 deletions

View File

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