From 7bcb81b7c8edcf0ffd8c199b40b1f8a7dd646a2a Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 26 Aug 2024 23:14:52 +0100 Subject: [PATCH] Tidying --- src/DebugServer/Gdb/CommandPackets/HelpMonitorInfo.cpp | 4 +--- src/DebugServer/Gdb/CommandPackets/ListRegistersMonitor.cpp | 2 +- src/DebugServer/Gdb/CommandPackets/ReadRegistersMonitor.cpp | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/DebugServer/Gdb/CommandPackets/HelpMonitorInfo.cpp b/src/DebugServer/Gdb/CommandPackets/HelpMonitorInfo.cpp index a5883b97..f887a2ce 100644 --- a/src/DebugServer/Gdb/CommandPackets/HelpMonitorInfo.cpp +++ b/src/DebugServer/Gdb/CommandPackets/HelpMonitorInfo.cpp @@ -28,12 +28,10 @@ namespace DebugServer::Gdb::CommandPackets ) { Logger::info("Handling HelpMonitorInfo packet"); - static constexpr auto LEFT_PADDING = std::string::size_type{3}; - static constexpr auto CMD_COLOR = StringService::TerminalColor::DARK_YELLOW; static constexpr auto PARAM_COLOR = StringService::TerminalColor::BLUE; - static const auto leftPadding = std::string{LEFT_PADDING, ' ', std::string::allocator_type{}}; + static const auto leftPadding = std::string{std::string::size_type{3}, ' ', std::string::allocator_type{}}; auto output = std::string{"\nSupported Bloom commands:\n\n"}; diff --git a/src/DebugServer/Gdb/CommandPackets/ListRegistersMonitor.cpp b/src/DebugServer/Gdb/CommandPackets/ListRegistersMonitor.cpp index adec990e..9ab77230 100644 --- a/src/DebugServer/Gdb/CommandPackets/ListRegistersMonitor.cpp +++ b/src/DebugServer/Gdb/CommandPackets/ListRegistersMonitor.cpp @@ -120,7 +120,7 @@ namespace DebugServer::Gdb::CommandPackets output += registerDescriptor.name + ", "; output += StringService::applyTerminalColor( "0x" + StringService::asciiToUpper(StringService::toHex(registerDescriptor.startAddress)), - StringService::TerminalColor::DARK_BLUE + StringService::TerminalColor::BLUE ) + ", "; output += std::to_string(registerDescriptor.size) + " byte(s)"; diff --git a/src/DebugServer/Gdb/CommandPackets/ReadRegistersMonitor.cpp b/src/DebugServer/Gdb/CommandPackets/ReadRegistersMonitor.cpp index 5d900bc6..1a8c53f0 100644 --- a/src/DebugServer/Gdb/CommandPackets/ReadRegistersMonitor.cpp +++ b/src/DebugServer/Gdb/CommandPackets/ReadRegistersMonitor.cpp @@ -113,7 +113,7 @@ namespace DebugServer::Gdb::CommandPackets auto output = std::string{"\nName: " + registerDescriptor.name + "\n"}; output += "Address: " + StringService::applyTerminalColor( "0x" + StringService::asciiToUpper(StringService::toHex(registerDescriptor.startAddress)), - StringService::TerminalColor::DARK_BLUE + StringService::TerminalColor::BLUE ) + "\n"; output += "Size: " + std::to_string(registerDescriptor.size) + " byte(s)\n\n"; @@ -181,7 +181,7 @@ namespace DebugServer::Gdb::CommandPackets output += registerDescriptor.name + ", "; output += StringService::applyTerminalColor( "0x" + StringService::asciiToUpper(StringService::toHex(registerDescriptor.startAddress)), - StringService::TerminalColor::DARK_BLUE + StringService::TerminalColor::BLUE ) + ", "; output += std::to_string(registerDescriptor.size) + " byte(s) | ";