[PATCH 07/13] gdb/csky: remove uses of sprintf
Simon Marchi
simark@simark.ca
Tue Aug 18 18:26:21 GMT 2026
On 8/17/26 4:50 PM, Tom Tromey wrote:
>>>>>> "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.
I tried changing xsnprintf to use array_view, but it was too big of a
change. I did not think about adding a new overload though, I think
that could work.
Simon
More information about the Binutils
mailing list