aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-18 02:32:27 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-18 02:32:27 +0000
commitfc61e9eeec88f29c61c9bf41e55c415aaf562251 (patch)
treefcad9d18becc89b1cd56daadc563ac15057987fd /gdb/printcmd.c
parent1d2bb445898a2511db544b7ea6765051f51522c8 (diff)
downloadgdb-fc61e9eeec88f29c61c9bf41e55c415aaf562251.zip
gdb-fc61e9eeec88f29c61c9bf41e55c415aaf562251.tar.gz
gdb-fc61e9eeec88f29c61c9bf41e55c415aaf562251.tar.bz2
* Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
${srcdir}/../include. * config/m88k/xm-delta88.h: Comment out unused defines which conflict with system headers. * printcmd.c (printf_command): Cast second arg to vprintf to PTR. Use VPRINTF macro if defined. * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>. Define TIOC{GETC,GLTC}_BROKEN. * m88k-nat.c: Uncomment include of <sys/ptrace.h>. * main.c: Rename initialize_{main,cmd_lists,history} to init_* to make things easier on munch (apparently this matters on the delta88 with svr3).
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index d40a2f8..54b5d94 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1815,6 +1815,7 @@ printf_command (arg, from_tty)
/* There is not a standard way to make a va_list, so we need
to do various things for different systems. */
#if defined (__INT_VARARGS_H)
+ /* This is defined by an 88k using gcc1. Do other machines use it? */
{
va_list list;
@@ -1824,7 +1825,11 @@ printf_command (arg, from_tty)
vprintf (string, list);
}
#else /* No __INT_VARARGS_H. */
- vprintf (string, arg_bytes);
+#ifdef VPRINTF
+ VPRINTF (string, arg_bytes);
+#else /* No VPRINTF. */
+ vprintf (string, (PTR) arg_bytes);
+#endif /* No VPRINTF. */
#endif /* No __INT_VARARGS_H. */
}