This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Old OSes compatibility [Re: 64-bit (>4GB) inferior data types rules; TYPE_LENGTH: unsigned -> ULONGEST]
On Mon, 01 Oct 2012 20:13:38 +0200, Joel Brobecker wrote:
> > That's true gnulib does not check for %z. But whole .microsoft.com does not
> > mention vasprintf so I believe it would get substituted by gnulib there.
>
> Microsoft is only one example of such systems, however. We cannot use
> this example to say that the %z check is unnecessary for all systems.
vasprintf is a GNU extension. glibc implemented vasprintf approx. on:
96aa2d94a2355cdc55c96e808d14a0e7f2ebe77d Date: Mon Nov 20 03:48:11 1995 +0000
while %z glibc implemented approx. on:
e852e889444a8bf27f3e5075d064e9922b38e7e2 Date: Tue Jul 28 16:26:04 1998 +0000
I do not say there cannot exist an OS with vasprintf not supporting %z but it
seems improbable enough to me to handle it specially before such OS is found.
As mentioned in the original mail it can be still easily fixed up after
a first user of such OS bugreports it.
Thanks,
Jan