Changed GDB "Handling..." logs to INFO level

This commit is contained in:
Nav
2023-05-07 20:17:33 +01:00
parent 602e08f97a
commit 61d608989d
22 changed files with 23 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
{} {}
void FlashDone::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void FlashDone::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling FlashDone packet"); Logger::info("Handling FlashDone packet");
try { try {
if (debugSession.programmingSession.has_value()) { if (debugSession.programmingSession.has_value()) {

View File

@@ -49,7 +49,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
void FlashErase::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void FlashErase::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling FlashErase packet"); Logger::info("Handling FlashErase packet");
try { try {
targetControllerService.enableProgrammingMode(); targetControllerService.enableProgrammingMode();

View File

@@ -49,7 +49,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
void FlashWrite::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void FlashWrite::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling FlashWrite packet"); Logger::info("Handling FlashWrite packet");
try { try {
if (this->buffer.empty()) { if (this->buffer.empty()) {

View File

@@ -63,7 +63,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
void ReadMemory::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void ReadMemory::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ReadMemory packet"); Logger::info("Handling ReadMemory packet");
try { try {
const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType; const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType;

View File

@@ -51,7 +51,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
void ReadMemoryMap::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void ReadMemoryMap::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ReadMemoryMap packet"); Logger::info("Handling ReadMemoryMap packet");
using Targets::TargetMemoryType; using Targets::TargetMemoryType;
const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType; const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType;

View File

@@ -69,7 +69,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
void WriteMemory::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void WriteMemory::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling WriteMemory packet"); Logger::info("Handling WriteMemory packet");
try { try {
const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType; const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType;

View File

@@ -27,7 +27,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void BloomVersion::handle(DebugSession& debugSession, TargetControllerService&) { void BloomVersion::handle(DebugSession& debugSession, TargetControllerService&) {
Logger::debug("Handling BloomVersion packet"); Logger::info("Handling BloomVersion packet");
debugSession.connection.writePacket(ResponsePacket(Services::StringService::toHex( debugSession.connection.writePacket(ResponsePacket(Services::StringService::toHex(
std::string( std::string(

View File

@@ -26,7 +26,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void BloomVersionMachine::handle(DebugSession& debugSession, TargetControllerService&) { void BloomVersionMachine::handle(DebugSession& debugSession, TargetControllerService&) {
Logger::debug("Handling BloomVersionMachine packet"); Logger::info("Handling BloomVersionMachine packet");
debugSession.connection.writePacket(ResponsePacket(Services::StringService::toHex( debugSession.connection.writePacket(ResponsePacket(Services::StringService::toHex(
QJsonDocument(QJsonObject({ QJsonDocument(QJsonObject({

View File

@@ -39,13 +39,13 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
if (packetString.find("vMustReplyEmpty") == 0) { if (packetString.find("vMustReplyEmpty") == 0) {
Logger::debug("Handling vMustReplyEmpty"); Logger::info("Handling vMustReplyEmpty");
debugSession.connection.writePacket(EmptyResponsePacket()); debugSession.connection.writePacket(EmptyResponsePacket());
return; return;
} }
if (packetString.find("qAttached") == 0) { if (packetString.find("qAttached") == 0) {
Logger::debug("Handling qAttached"); Logger::info("Handling qAttached");
debugSession.connection.writePacket(ResponsePacket(std::vector<unsigned char>({1}))); debugSession.connection.writePacket(ResponsePacket(std::vector<unsigned char>({1})));
return; return;
} }

View File

@@ -23,7 +23,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void ContinueExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void ContinueExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ContinueExecution packet"); Logger::info("Handling ContinueExecution packet");
try { try {
targetControllerService.continueTargetExecution(this->fromAddress, std::nullopt); targetControllerService.continueTargetExecution(this->fromAddress, std::nullopt);

View File

@@ -21,7 +21,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void Detach::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void Detach::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling Detach packet"); Logger::info("Handling Detach packet");
try { try {
if (Services::ProcessService::isManagedByClion()) { if (Services::ProcessService::isManagedByClion()) {

View File

@@ -35,7 +35,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void EepromFill::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void EepromFill::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling EepromFill packet"); Logger::info("Handling EepromFill packet");
try { try {
const auto& targetDescriptor = debugSession.gdbTargetDescriptor.targetDescriptor; const auto& targetDescriptor = debugSession.gdbTargetDescriptor.targetDescriptor;

View File

@@ -29,7 +29,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void GenerateSvd::handle(DebugSession& debugSession, TargetControllerService&) { void GenerateSvd::handle(DebugSession& debugSession, TargetControllerService&) {
Logger::debug("Handling GenerateSvd packet"); Logger::info("Handling GenerateSvd packet");
try { try {
Logger::info("Generating SVD XML for current target"); Logger::info("Generating SVD XML for current target");

View File

@@ -26,7 +26,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void HelpMonitorInfo::handle(DebugSession& debugSession, TargetControllerService&) { void HelpMonitorInfo::handle(DebugSession& debugSession, TargetControllerService&) {
Logger::debug("Handling HelpMonitorInfo packet"); Logger::info("Handling HelpMonitorInfo packet");
try { try {
/* /*

View File

@@ -16,7 +16,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
using Exceptions::Exception; using Exceptions::Exception;
void InterruptExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void InterruptExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling InterruptExecution packet"); Logger::info("Handling InterruptExecution packet");
if (targetControllerService.getTargetState() == Targets::TargetState::STOPPED) { if (targetControllerService.getTargetState() == Targets::TargetState::STOPPED) {
debugSession.pendingInterrupt = true; debugSession.pendingInterrupt = true;

View File

@@ -33,7 +33,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void ReadRegisters::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void ReadRegisters::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ReadRegisters packet"); Logger::info("Handling ReadRegisters packet");
try { try {
const auto& targetDescriptor = debugSession.gdbTargetDescriptor; const auto& targetDescriptor = debugSession.gdbTargetDescriptor;

View File

@@ -51,7 +51,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void RemoveBreakpoint::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void RemoveBreakpoint::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling RemoveBreakpoint packet"); Logger::info("Handling RemoveBreakpoint packet");
try { try {
Logger::debug("Removing breakpoint at address " + std::to_string(this->address)); Logger::debug("Removing breakpoint at address " + std::to_string(this->address));

View File

@@ -22,7 +22,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{} {}
void ResetTarget::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void ResetTarget::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ResetTarget packet"); Logger::info("Handling ResetTarget packet");
try { try {
Logger::warning("Resetting target"); Logger::warning("Resetting target");

View File

@@ -53,7 +53,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void SetBreakpoint::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void SetBreakpoint::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling SetBreakpoint packet"); Logger::info("Handling SetBreakpoint packet");
try { try {
if (this->type == BreakpointType::UNKNOWN) { if (this->type == BreakpointType::UNKNOWN) {

View File

@@ -24,7 +24,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void StepExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void StepExecution::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling StepExecution packet"); Logger::info("Handling StepExecution packet");
try { try {
targetControllerService.stepTargetExecution(this->fromAddress); targetControllerService.stepTargetExecution(this->fromAddress);

View File

@@ -54,7 +54,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void SupportedFeaturesQuery::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void SupportedFeaturesQuery::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling QuerySupport packet"); Logger::info("Handling QuerySupport packet");
if (!this->isFeatureSupported(Feature::HARDWARE_BREAKPOINTS) if (!this->isFeatureSupported(Feature::HARDWARE_BREAKPOINTS)
&& !this->isFeatureSupported(Feature::SOFTWARE_BREAKPOINTS) && !this->isFeatureSupported(Feature::SOFTWARE_BREAKPOINTS)

View File

@@ -43,7 +43,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
} }
void WriteRegister::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) { void WriteRegister::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling WriteRegister packet"); Logger::info("Handling WriteRegister packet");
try { try {
auto targetRegisterDescriptor = debugSession.gdbTargetDescriptor.getTargetRegisterDescriptorFromNumber( auto targetRegisterDescriptor = debugSession.gdbTargetDescriptor.getTargetRegisterDescriptorFromNumber(