From c9d8fc9120db2c32dd5525c9e923771c607c9803 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 18 Jun 1993 02:33:01 +0000 Subject: [PATCH] * 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 . Define TIOC{GETC,GLTC}_BROKEN. * m88k-nat.c: Uncomment include of . * main.c: Rename initialize_{main,cmd_lists,history} to init_* to make things easier on munch (apparently this matters on the delta88 with svr3). --- gdb/config/m88k/xm-delta88.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/gdb/config/m88k/xm-delta88.h b/gdb/config/m88k/xm-delta88.h index eb8e20b579b..685d596c3f8 100644 --- a/gdb/config/m88k/xm-delta88.h +++ b/gdb/config/m88k/xm-delta88.h @@ -24,14 +24,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define USG 1 #endif +#define TIOCGETC_BROKEN 1 +#define TIOCGLTC_BROKEN 1 + #include #include +/* Required by . */ +#include + #define HAVE_TERMIO /*#define USIZE 2048*/ -#define NBPG NBPC -#define UPAGES USIZE +/*#define NBPG NBPC*/ +/* Might be defined in . I suspect this define was a relic + from before when BFD did core files. */ +/* #define UPAGES USIZE */ /* This is the amount to subtract from u.u_ar0 to get the offset in the core file of the register values. */ @@ -42,3 +50,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define KERNEL_U_ADDR 0 +/* Like vprintf, but takes a a pointer to the args, laid out in order, + rather than a va_list. */ +/* Does this really work, or is it just enough to get this to compile? */ +#define VPRINTF(string, args) \ + { \ + __gnuc_va_list list; \ + list.__va_arg = 0; \ + list.__va_stk = (int *) args; \ + list.__va_reg = (int *) args; \ + vprintf (string, list); \ + } -- 2.30.2