Fix format_pieces selftest on Windows
authorTom Tromey <tromey@adacore.com>
Wed, 29 Sep 2021 18:51:15 +0000 (12:51 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 19 Oct 2021 19:14:48 +0000 (13:14 -0600)
commit5dfe4bfcb96945dc5cc1f8717be454f1f7f6bbec
treeaae9e022c794f4887ad3e9ac759bcb0de647e183
parent05fb05a94729473cb04b1299fe5c36e06525c78f
Fix format_pieces selftest on Windows

The format_pieces selftest currently fails on Windows hosts.

The selftest doesn't handle the "%ll" -> "%I64" rewrite that the
formatter may perform, but also gdbsupport was missing a configure
check for PRINTF_HAS_LONG_LONG.  This patch fixes both issues.
gdb/configure
gdb/configure.ac
gdb/unittests/format_pieces-selftests.c
gdbsupport/common.m4
gdbsupport/config.in
gdbsupport/configure