Re: [pushed] gdb: Support printf 'z' size modifier

Eli Zaretskii
2019-11-14T12:55:14Z

> Date: Tue, 12 Nov 2019 18:53:15 -0500
> From: "Sourceware to Gerrit sync (Code Review)" <gerrit@gnutoolchain-gerrit.osci.io>
> Cc: Kevin Buettner <kevinb@redhat.com>, Joel Brobecker <brobecker@adacore.com>, Pedro Alves <palves@redhat.com>, Simon Marchi <simon.marchi@polymtl.ca>, Tom Tromey <tromey@sourceware.org>
>
> gdb/ChangeLog:
>
> * gdbsupport/format.c (format_pieces::format_pieces): Support
> printf 'z' size modifier.
> * gdbsupport/format.h (enum argclass): Add size_t_arg.
> * printcmd.c (ui_printf): Handle size_t_arg.
> * ui-out.c (ui_out::vmessage): Likewise.
> * unittests/format_pieces-selftests.c (test_format_int_sizes): New
> function.
> (run_tests): Call test_format_int_sizes.

I believe this requires to use __USE_MINGW_ANSI_STDIO with the MinGW
builds, since %z is not universally supported by the Windows runtime.