|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Encodes register values from a execution context into GDB RSP hex strings. More...
#include <gdb_register_array.hpp>
Static Public Member Functions | |
| template<typename AbiTraits > | |
| static void | encode_all_registers (sink out, const register_context_ref &ctx) noexcept |
| Encodes the full register layout for a specific architecture ('g' packet response). | |
| static RELOCO_BEGIN_UNSAFE_CODE void | encode_single_register (sink out, const register_context_ref &ctx, const register_mapping ®) noexcept |
| Encodes a single register based on its mapping ('p' packet response). | |
Encodes register values from a execution context into GDB RSP hex strings.
Generates payloads for 'g' (read all general registers) and 'p' (read single register) requests.
|
inlinestaticnoexcept |
Encodes the full register layout for a specific architecture ('g' packet response).
Iterates over the standard GDB layout in sequential order, querying the context using the mapped DWARF indices.
| AbiTraits | The target ABI traits (e.g., aarch64_abi_traits). |
| out | The sink to stream the hex payload into. |
| ctx | The typed-erased kernel/debugger thread context. |
|
inlinestaticnoexcept |
Encodes a single register based on its mapping ('p' packet response).
| out | The sink to stream the hex payload into. |
| ctx | The typed-erased kernel/debugger thread context. |
| reg | The register mapping describing size and DWARF index. |