This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
patch for m68k-elf crash
- To: binutils at sourceware dot cygnus dot com
- Subject: patch for m68k-elf crash
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Wed, 22 Dec 1999 17:21:55 -0800
Somewhere in the m68k disassembler, it calls a printf-like routine
with the string "%%sr". This fails on systems that don't have
a vasprintf routine; a patch is attached.
OK, now where do I commit this? There must be a master file somewhere...
--
- Geoffrey Keating <geoffk@cygnus.com>
===File ~/patches/cygnus/libi-%%.patch======================
Index: libiberty/ChangeLog
===================================================================
RCS file: /cvs/cvsfiles/devo/libiberty/ChangeLog,v
retrieving revision 1.497
diff -u -p -r1.497 ChangeLog
--- ChangeLog 1999/11/10 16:46:45 1.497
+++ ChangeLog 1999/12/23 00:20:31
@@ -1,3 +1,8 @@
+1999-12-22 Geoff Keating <geoffk@cygnus.com>
+
+ * vasprintf.c (int_vasprintf): Don't re-read the format character
+ as this mishandles strings like '%%s'.
+
Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
* hashtab.c: Include stdio.h.
Index: libiberty/vasprintf.c
===================================================================
RCS file: /cvs/cvsfiles/devo/libiberty/vasprintf.c,v
retrieving revision 1.13
diff -u -p -r1.13 vasprintf.c
--- vasprintf.c 1998/11/11 05:58:25 1.13
+++ vasprintf.c 1999/12/23 00:20:31
@@ -105,6 +105,7 @@ int_vasprintf (result, format, args)
(void) va_arg (ap, char *);
break;
}
+ p++;
}
}
#ifdef TEST
============================================================