- Implemented support for range stepping with GDB (vCont... packets)

- Refactored some bits of the generic GDB server class, along with the AVR-specific implementation
This commit is contained in:
Nav
2023-09-10 22:27:10 +01:00
parent 1d0f30db7a
commit 7d4ce1050f
42 changed files with 901 additions and 103 deletions

View File

@@ -37,6 +37,12 @@ namespace Services
return str;
}
std::string StringService::toHex(std::uint32_t value) {
auto stream = std::stringstream();
stream << std::hex << std::setfill('0') << std::setw(8) << static_cast<unsigned int>(value);
return stream.str();
}
std::string StringService::toHex(unsigned char value) {
auto stream = std::stringstream();
stream << std::hex << std::setfill('0') << std::setw(2) << static_cast<unsigned int>(value);