🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ralph Noack Fri, 02 Dec 1988 20:05
gdb && sunos4:c_fpstatus not in struct core
#632
Author: Ralph Noack
Date: Fri, 02 Dec 1988 20:05
61 lines
2759 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads