This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: XML XInclude support
On Thu, Feb 08, 2007 at 02:06:02PM +0100, Mark Kettenis wrote:
> AWK="nawk" /bin/sh ../../../src/gdb/gdb/features/feature_to_c.sh xml-builtin.tmp ../../../src/gdb/gdb/features/gdb-target.dtd ../../../src/gdb/gdb/features/xinclude.dtd
> nawk: weird printf conversion %',
> input record number 13, file
> source line number 15
> nawk: not enough args in printf('%', )
> input record number 13, file
> source line number 15
I was afraid of the awk :-( I was very careful to try to avoid
GNU-ism; I tested with gawk, mawk, and gawk --posix. But apparently
all three of those let something through that nawk does not support.
That line is:
} else if (_ord_[c] >= 32 && _ord_[c] < 127) {
printf "'\''" c "'\'', "
We're inside single quotes here, so what gets passed to awk should be:
printf "'" c "', "
Could you try replacing that line with this, to avoid the % being
interpreted as a format specifier?
printf "'\''%c'\'', ", c
--
Daniel Jacobowitz
CodeSourcery