From 388f491940ec5b664dbd9ab3afd1cf4b94db9adb Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Mon, 21 Mar 1994 21:16:16 +0000 Subject: [PATCH] * config/i386/tm-i386aix.h, config/i386/tm-sun386.h, config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo. * config/i386/tm-symmetry.h: Make comment inside #if 0 a real comment. * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument to write_memory to avoid warnings from gcc. * config/i386/xm-symmetry.h: Add missing #endif. * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix. * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o. * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add. --- gdb/config/i386/nm-symmetry.h | 1 + gdb/config/i386/symmetry.mh | 4 +++- gdb/config/i386/symmetry.mt | 2 +- gdb/config/i386/tm-i386aix.h | 2 +- gdb/config/i386/tm-sun386.h | 2 +- gdb/config/i386/tm-symmetry.h | 8 ++++---- gdb/config/i386/xm-symmetry.h | 1 + 7 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gdb/config/i386/nm-symmetry.h b/gdb/config/i386/nm-symmetry.h index a0531e2fec3..3c1161c6177 100644 --- a/gdb/config/i386/nm-symmetry.h +++ b/gdb/config/i386/nm-symmetry.h @@ -39,4 +39,5 @@ extern int child_wait PARAMS ((int, struct target_waitstatus *)); #define KERNEL_U_ADDR (VA_UAREA) /* ptx */ #else #define KERNEL_U_ADDR (0x80000000 - (UPAGES * NBPG)) /* dynix */ +#define NO_PTRACE_H #endif diff --git a/gdb/config/i386/symmetry.mh b/gdb/config/i386/symmetry.mh index a6e0911e562..e0fd1d9cc73 100644 --- a/gdb/config/i386/symmetry.mh +++ b/gdb/config/i386/symmetry.mh @@ -1,3 +1,5 @@ # Host: Sequent Symmetry running Dynix 3.0, with Weitek 1167 or i387. -XDEPFILES= infptrace.o inftarg.o fork-child.o symm-nat.o +XDEPFILES= XM_FILE= xm-symmetry.h +NAT_FILE= nm-symmetry.h +NATDEPFILES= exec.o inftarg.o fork-child.o coredep.o corelow.o symm-nat.o diff --git a/gdb/config/i386/symmetry.mt b/gdb/config/i386/symmetry.mt index dd7c790a939..09ab75b4ed4 100644 --- a/gdb/config/i386/symmetry.mt +++ b/gdb/config/i386/symmetry.mt @@ -1,3 +1,3 @@ # Target: Sequent Symmetry running Dynix 3.0, with Weitek 1167 or i387. -TDEPFILES= symm-tdep.o i386-pinsn.o i387-tdep.o +TDEPFILES= i386-tdep.o symm-tdep.o i386-pinsn.o i387-tdep.o TM_FILE= tm-symmetry.h diff --git a/gdb/config/i386/tm-i386aix.h b/gdb/config/i386/tm-i386aix.h index 78478746165..87d49fb7f12 100644 --- a/gdb/config/i386/tm-i386aix.h +++ b/gdb/config/i386/tm-i386aix.h @@ -129,7 +129,7 @@ i387_to_double PARAMS ((char *, char *)); #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - double_to_i387((char *)&val, (TO))) \ + double_to_i387((char *)&val, (TO)); \ } extern void double_to_i387 PARAMS ((char *, char *)); diff --git a/gdb/config/i386/tm-sun386.h b/gdb/config/i386/tm-sun386.h index 20819ce09d2..a34305a3d6e 100644 --- a/gdb/config/i386/tm-sun386.h +++ b/gdb/config/i386/tm-sun386.h @@ -181,7 +181,7 @@ i387_to_double PARAMS ((char *, char *)); #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - double_to_i387((char *)&val, (TO))) \ + double_to_i387((char *)&val, (TO)); \ } extern void double_to_i387 PARAMS ((char *, char *)); diff --git a/gdb/config/i386/tm-symmetry.h b/gdb/config/i386/tm-symmetry.h index 2bdf2689892..34e03b1532b 100644 --- a/gdb/config/i386/tm-symmetry.h +++ b/gdb/config/i386/tm-symmetry.h @@ -54,8 +54,8 @@ extern int ptx_coff_regno_to_gdb(); #define ABOUT_TO_RETURN(pc) (read_memory_integer (pc, 1) == 0xc9) #if 0 - --- this code can't be used unless we know we are running native, - since it uses host specific ptrace calls. +/* --- this code can't be used unless we know we are running native, + since it uses host specific ptrace calls. */ /* code for 80387 fpu. Functions are from i386-dep.c, copied into * symm-dep.c. */ @@ -409,7 +409,7 @@ i387_to_double PARAMS ((char *, char *)); #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - double_to_i387((char *)&val, (TO))) \ + double_to_i387((char *)&val, (TO)); \ } extern void double_to_i387 PARAMS ((char *, char *)); @@ -434,7 +434,7 @@ double_to_i387 PARAMS ((char *, char *)); #undef STORE_STRUCT_RETURN #define STORE_STRUCT_RETURN(ADDR, SP) \ { (SP) -= sizeof (ADDR); \ - write_memory ((SP), &(ADDR), sizeof (ADDR)); \ + write_memory ((SP), (char *) &(ADDR), sizeof (ADDR)); \ write_register(0, (ADDR)); } /* Extract from an array REGBUF containing the (raw) register state diff --git a/gdb/config/i386/xm-symmetry.h b/gdb/config/i386/xm-symmetry.h index d18d40b4aab..1d0d42d479d 100644 --- a/gdb/config/i386/xm-symmetry.h +++ b/gdb/config/i386/xm-symmetry.h @@ -53,6 +53,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef _SEQUENT_ /* ptx does attach as of ptx version 2.1 */ #define ATTACH_DETACH 1 +#endif #define HOST_BYTE_ORDER LITTLE_ENDIAN -- 2.30.2