Re: Building today's snapshot of GDB with MinGW

Eli Zaretskii
2020-07-03T15:08:53Z

> Date: Thu, 02 Jul 2020 17:12:44 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: Joel Brobecker <brobecker@adacore.com>
>
> (top-gdb) p pieces.m_pieces._M_impl._M_start[1]
> $5 = {string = 0x178c5ad8 "%d", argclass = int_arg, n_int_args = 0}
> (top-gdb) p pieces.m_pieces._M_impl._M_start[2]
> $6 = {string = 0x178c5adc "%I64x", argclass = long_long_arg, n_int_args = 0}
>
> As you see, we replace "%llx" with "%I64x", and the comparison then
> fails. Would it be okay to fix this by providing a different
> expected_pieces when USE_PRINTF_I64 is non-zero?

Actually, USE_PRINTF_I64 seems to be zero in my build, so I don't
really see why does format.cc replace "%llx" with "%I64x". Could
someone please help me see that which I'm missing here?