|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Decodes GDB RSP hex strings into binary values and writes them to the execution context. More...
#include <gdb_register_array.hpp>
Static Public Member Functions | |
| template<typename AbiTraits > | |
| static bool | decode_all_registers (string_view hex_payload, const register_context_ref &ctx) noexcept |
| Decodes the full register layout hex payload ('G' packet payload). | |
| static RELOCO_BEGIN_UNSAFE_CODE bool | decode_single_register (string_view hex_payload, const register_context_ref &ctx, const register_mapping ®) noexcept |
| Decodes a single register hex payload ('P' packet value). | |
Decodes GDB RSP hex strings into binary values and writes them to the execution context.
Processes payloads for 'G' (write all general registers) and 'P' (write single register) requests.
|
inlinestaticnoexcept |
Decodes the full register layout hex payload ('G' packet payload).
Iterates over the standard GDB layout in sequential order, extracting hex chunks, decoding them, and pushing them to the target context.
| AbiTraits | The target ABI traits (e.g., aarch64_abi_traits). |
| hex_payload | The raw hex string received in the 'G' packet. |
| ctx | The typed-erased kernel/debugger thread context. |
|
inlinestaticnoexcept |
Decodes a single register hex payload ('P' packet value).
| hex_payload | The hex value string to decode. |
| ctx | The typed-erased kernel/debugger thread context. |
| reg | The register mapping describing size and DWARF index. |