Made default value of reserveSteppingBreakpoint target config param vary across targets

This commit is contained in:
Nav
2024-11-24 19:33:28 +00:00
parent 7c647caa67
commit 899cbc92c4
4 changed files with 4 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ namespace Targets::RiscV::Wch
hardwareBreakpointCount,
std::nullopt,
static_cast<std::uint16_t>(
this->targetConfig.reserveSteppingBreakpoint && hardwareBreakpointCount > 0 ? 1 : 0
this->targetConfig.reserveSteppingBreakpoint.value_or(false) && hardwareBreakpointCount > 0 ? 1 : 0
)
}
};