Second pass at GDB monitor help command handler refactor.

Also added help text for the new `lr` and `rr` commands.
This commit is contained in:
Nav
2024-08-26 23:14:35 +01:00
parent e1216b7cc0
commit ff5b387ef5
3 changed files with 66 additions and 29 deletions

View File

@@ -42,11 +42,6 @@ namespace Services
return str;
}
std::string StringService::padRight(std::string str, char padChar, std::size_t padSize) {
str.insert(str.end(), str.size() < padSize ? padSize - str.size() : 0, padChar);
return str;
}
std::string StringService::toHex(std::uint64_t value) {
auto stream = std::stringstream{};
stream << std::hex << std::setfill('0') << std::setw(16) << static_cast<unsigned int>(value);

View File

@@ -16,7 +16,6 @@ namespace Services
static bool isAscii(const std::string& str);
static std::string replaceUnprintable(std::string str);
static std::string padRight(std::string str, char padChar, std::size_t padSize);
static std::string toHex(std::uint64_t value);
static std::string toHex(std::uint32_t value);