This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]