Zero-allocation printer for generating GDB target XML descriptions.
More...
#include <register_xml_printer.hpp>
|
| static void | format_register (sink out, const register_mapping ®) 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.
|
| |
Zero-allocation printer for generating GDB target XML descriptions.
◆ 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
-
| out | The sink to write the XML string to. |
| reg | The 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
-
- Parameters
-
| out | The sink to write the XML document to. |
| gdb_arch_name | The architecture string expected by GDB (e.g., "aarch64", "i386:x86-64"). |
| feature_name | The GDB feature namespace (default: "org.gnu.gdb.custom"). |
The documentation for this class was generated from the following file: