Path: utzoo!utgpu!water!watmath!uunet!labrea!agate!ucbvax!ucsd!rutgers!tut.cis.ohio-state.edu!osu-cis!att!chinet!mcdchg!ditka!amanue!cgh!manta!brant From: brant@manta.UUCP (Brant Cheikes) Newsgroups: unix-pc.general Subject: What's in a core file? Message-ID: <366@manta.UUCP> Date: 29 May 88 06:03:23 GMT Reply-To: brant@manta.UUCP (Brant Cheikes) Organization: Soul of the Gnu Machine, Philadelphia Lines: 23 I'm working on undump: it takes an a.out plus a core dump and creates a new executable image (why is not germane here). I need to know the format of a core file -- the core(4) man page is useless, as usual. I especially need to know how to read out the user structure (defined in ) from the core file. Attempts to simply: /* * code swatch */ struct user u; FILE *cfp; cfp = fopen("core","r"); fread(&u, sizeof u, 1, cfp); have failed. The resulting u is mostly zeros. Is there anyone out there who knows how to read core files and could offer some assistance here? -- Brant Cheikes University of Pennsylvania Department of Computer and Information Science ARPA: brant@linc.cis.upenn.edu, UUCP: ...drexel!manta!brant