[PATCH 07/13] gdb/csky: remove uses of sprintf

Tom Tromey tom@tromey.com
Mon Aug 17 20:50:02 GMT 2026


>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:

Andrew> to gdbsupport/common-utils.h.  This is fine except that gcc is unable to
Andrew> track the format literal through the template call, so I think we'd
Andrew> actually have to do:

It might work if instead the 'buf' argument were a gdb::array_view,
which I think can be implicitly constructed from an array.

Tom


More information about the Binutils mailing list