Simon Marchi 65cded61a2 gdbsupport: add string_xml_appendf
Add a version of buffer_xml_printf (defined in gdbsupport/buffer.{c,h})
that appends to an std::string, rather than a struct buffer.  Call it
"string" rather than "buffer" since it operates on an std::string rather
than a buffer.  And call it "appendf" rather than "printf", since it
appends to and does not replace the string's content.  This mirrors
string_appendf.

Place the new version in gdbsupport/xml-utils.h.

The code is a direct copy of buffer_xml_printf.  The old version is
going to disappear at some point, which is why I didn't do any effort to
share code.

Change-Id: I30e030627ab4970fd0b9eba3b7e8cec78fa561ba
Approved-By: Pedro Alves <pedro@palves.net>
2022-12-16 08:33:12 -05:00
..
2022-01-18 10:14:42 -07:00
2022-08-05 08:09:57 +02:00
2022-10-09 21:27:37 -04:00
2022-11-27 21:08:24 +01:00
2022-11-13 14:46:20 +00:00
2022-11-13 14:46:20 +00:00
2022-03-03 13:06:50 -08:00
2022-01-18 10:14:43 -07:00
2022-05-10 08:15:40 -06:00
2022-05-10 08:15:40 -06:00
2022-12-16 08:33:12 -05:00

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.