Changed GDB "Handling..." logs to INFO level
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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 {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user