microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
microfmt::gdb::register_xml_printer Class Reference

Zero-allocation printer for generating GDB target XML descriptions. More...

#include <register_xml_printer.hpp>

Static Public Member Functions

static void format_register (sink out, const register_mapping &reg) noexcept
 Formats a single register as a GDB XML <reg> node.
 
template<typename AbiTraits >
static void format_target_xml (sink out, string_view gdb_arch_name, string_view feature_name="org.gnu.gdb.custom") noexcept
 Generates a complete GDB target.xml document for a specific architecture.
 

Detailed Description

Zero-allocation printer for generating GDB target XML descriptions.

Member Function Documentation

◆ format_register()

static void microfmt::gdb::register_xml_printer::format_register ( sink  out,
const register_mapping &  reg 
)
inlinestaticnoexcept

Formats a single register as a GDB XML <reg> node.

Parameters
outThe sink to write the XML string to.
regThe register mapping to format.

◆ format_target_xml()

template<typename AbiTraits >
static void microfmt::gdb::register_xml_printer::format_target_xml ( sink  out,
string_view  gdb_arch_name,
string_view  feature_name = "org.gnu.gdb.custom" 
)
inlinestaticnoexcept

Generates a complete GDB target.xml document for a specific architecture.

Template Parameters
AbiTraitsThe target ABI traits (e.g., aarch64_abi_traits).
Parameters
outThe sink to write the XML document to.
gdb_arch_nameThe architecture string expected by GDB (e.g., "aarch64", "i386:x86-64").
feature_nameThe GDB feature namespace (default: "org.gnu.gdb.custom").

The documentation for this class was generated from the following file: