This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] long long for printf on MinGW
- From: "Mark Kettenis" <mark dot kettenis at xs4all dot nl>
- To: "Andrew STUBBS" <andrew dot stubbs at st dot com>
- Cc: "GDB Patches" <gdb-patches at sourceware dot org>
- Date: Wed, 11 Oct 2006 22:28:21 +0200 (CEST)
- Subject: Re: [PATCH] long long for printf on MinGW
- References: <452CCE2D.8070806@st.com>
> Hi,
>
> Windows/MinGW printf does support printing of long long types, but it
> does not do using %lld etc.
>
> This patch converts %ll (or %...ll) to %I64 as required by Windows.
What! Seven years after ISO C99 was ratified, Microsoft still ships a libc
that doesn't support %ll?
Sigh, I don't see why we need to treat MINGW special here. We should
probably
just print an error if PRINTF_HAS_LONG_LONG isn't defined.
Actually I think the way we support size modifiers in gdb's printf are
completely broken. Do they refer to the host types, or the target types?