Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!mailrus!ames!killer!utacfd!rwn From: rwn@utacfd.UUCP (Ralph Noack) Newsgroups: gnu.gdb.bug Subject: gdb && sunos4:c_fpstatus not in struct core Keywords: help, gdb, sunos4, c_fpstatus, struct core Message-ID: <194@utacfd.UUCP> Date: 2 Dec 88 20:05:38 GMT Reply-To: rwn@utacfd.UUCP (Ralph Noack) Organization: Univ. of Tx at Arlington, Comp. Fluid Dyn. Center, Arlington, Tx Lines: 61 I'm sure this has been answered so sorry for the possible repetition. I am trying to build the 2.8 version of gdb (came with emacs 18.52) on a Sun 3 running SunOS 4.0. There seems to be a problem with a structure definition. Gcc nicely reports: core.c: In function core_file_command: core.c:207: structure has no member named `c_fpstatus' core.c:209: structure has no member named `c_fpstatus' core.c:210: structure has no member named `c_fpstatus' core.c:212: structure has no member named `c_fpstatus' core.c:212: structure has no member named `c_fpstatus' looking at the core structure definition from /usr/include/sys/core.h (which is included below) I find that the comment refers to c_fpstatus but it is not to be found anywhere in /usr/include/*/*. What am I missing? Thanks in advance, Ralph Noack -------------------from /usr/include/sys/core.h --------------------- /* @(#)core.h 1.16 88/02/08 SMI */ /* * Copyright (c) 1987 by Sun Microsystems, Inc. */ [deleted lines] /* * Format of the beginning of a `new' core file. * The `old' core file consisted of dumping the u area. * In the `new' core format, this structure is followed * copies of the data and stack segments. Finally the user * struct is dumped at the end of the core file for programs * which really need to know this kind of stuff. The length * of this struct in the core file can be found in the * c_len field. When struct core is changed, c_fpstatus * and c_fparegs should start at long word boundaries (to * make the floating pointing signal handler run more efficiently). */ struct core { int c_magic; /* Corefile magic number */ int c_len; /* Sizeof (struct core) */ struct regs c_regs; /* General purpose registers */ struct exec c_aouthdr; /* A.out header */ int c_signo; /* Killing signal, if any */ int c_tsize; /* Text size (bytes) */ int c_dsize; /* Data size (bytes) */ int c_ssize; /* Stack size (bytes) */ char c_cmdname[CORE_NAMELEN + 1]; /* Command name */ #ifdef FPU struct fpu c_fpu; /* external FPU state */ #endif int c_ucode; /* Exception no. from u_code */ }; -- Ralph W. Noack (817)-273-2860 Univ. of Tx at Arlington, Aerospace Eng. Dept. Box 19018 Arlington, Tx 76019 ..!{killer,texsun}!utacfd!rwn