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) {
Logger::debug("Handling FlashDone packet");
Logger::info("Handling FlashDone packet");
try {
if (debugSession.programmingSession.has_value()) {

View File

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

View File

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

View File

@@ -63,7 +63,7 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
}
void ReadMemory::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling ReadMemory packet");
Logger::info("Handling ReadMemory packet");
try {
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) {
Logger::debug("Handling ReadMemoryMap packet");
Logger::info("Handling ReadMemoryMap packet");
using Targets::TargetMemoryType;
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) {
Logger::debug("Handling WriteMemory packet");
Logger::info("Handling WriteMemory packet");
try {
const auto& memoryDescriptorsByType = debugSession.gdbTargetDescriptor.targetDescriptor.memoryDescriptorsByType;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -29,7 +29,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
{}
void GenerateSvd::handle(DebugSession& debugSession, TargetControllerService&) {
Logger::debug("Handling GenerateSvd packet");
Logger::info("Handling GenerateSvd packet");
try {
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&) {
Logger::debug("Handling HelpMonitorInfo packet");
Logger::info("Handling HelpMonitorInfo packet");
try {
/*

View File

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

View File

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

View File

@@ -51,7 +51,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
}
void RemoveBreakpoint::handle(DebugSession& debugSession, TargetControllerService& targetControllerService) {
Logger::debug("Handling RemoveBreakpoint packet");
Logger::info("Handling RemoveBreakpoint packet");
try {
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) {
Logger::debug("Handling ResetTarget packet");
Logger::info("Handling ResetTarget packet");
try {
Logger::warning("Resetting target");

View File

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

View File

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

View File

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

View File

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