Added support for GDB's 'qXfer:memory-map:read::...' command packet.
This commit is contained in:
33
src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.hpp
Normal file
33
src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
|
||||
|
||||
namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
/**
|
||||
* The ReadMemoryMap class implements a structure for "qXfer:memory-map:read::..." packet. Upon receiving this
|
||||
* packet, the server is expected to respond with the target's memory map.
|
||||
*/
|
||||
class ReadMemoryMap: public Gdb::CommandPackets::CommandPacket
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* The offset of the memory map, from which to read.
|
||||
*/
|
||||
std::uint32_t offset = 0;
|
||||
|
||||
/**
|
||||
* The length of the memory map to read.
|
||||
*/
|
||||
std::uint32_t length = 0;
|
||||
|
||||
explicit ReadMemoryMap(const RawPacketType& rawPacket);
|
||||
|
||||
void handle(
|
||||
DebugSession& debugSession,
|
||||
TargetController::TargetControllerConsole& targetControllerConsole
|
||||
) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user