aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-24 16:34:56 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-24 16:34:56 +0000
commit313fdead0e74ca29e82574e344fcc8478e4c5e96 (patch)
treec2e4d4e7e12f9a459d79a378ac00bbed856cab94 /gdb
parent54154111c54fef603378217d4f13c3af20b6ce06 (diff)
downloadgdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.zip
gdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.tar.gz
gdb-313fdead0e74ca29e82574e344fcc8478e4c5e96.tar.bz2
Use <varargs.h>, since <stdarg.h> is not portable.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarfread.c9
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ab81f0c..c5b300d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Thu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com)
+
+ * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable.
+
Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
* dwarfread.c: New file for DWARF debugging format support.
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 6bb6c16..54323fd 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -65,7 +65,7 @@ other things to work on, if you get bored. :-)
*/
#include <stdio.h>
-#include <stdarg.h>
+#include <varargs.h>
#include <fcntl.h>
#include "defs.h"
@@ -607,11 +607,14 @@ NOTES
*/
static void
-DEFUN(dwarfwarn, (fmt), char *fmt DOTS)
+dwarfwarn (va_alist)
+ va_dcl
{
va_list ap;
+ char *fmt;
- va_start (ap, fmt);
+ va_start (ap);
+ fmt = va_arg (ap, char *);
warning_setup ();
fprintf (stderr, "DWARF warning (ref 0x%x): ", curdie -> dieref);
if (curdie -> at_name)