🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #56145

Re: gdb to read ELF cores

#56145
From: Mr Stuart Lamble
Date: Wed, 02 Apr 1997 00:00
29 lines
1412 bytes
C. Arnold (cla@peg.apc.org) wrote:
: I can't see any compile-time option with gdb (4.15.1) or directions to
: .rc files.  It itself is a ELF binary, but it claims 'File in wrong
: format' for cores that file(1) says are version 1 ELF.

Sounds familiar. Edit /usr/include/sys/procfs.h so it looks something
like:

#ifndef _SYS_PROCFS_H
#define _SYS_PROCFS_H

#include <linux/sys.h>
#include <linux/elfcore.h>

#endif

It tries to do some manipulation to get gdb to compile properly. It fails,
undefines a crucial #define, and the net result is gdb is compiled
incorrectly.

Once you've edited the .h file, recompile gdb, and All Should Be Well with
the world. :-) (recompiling meaning the configure, etc.)

-- 
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead.  -- RFC1925.
Technical Details
Message-ID: <5hsefi$kgg$2@harbinger.cc.monash.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <33407398.6EA33A9F@peg.apc.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,9033326ffdb467d
X-Google-Attributes: gid102983,public
From: lamble@aurora.cc.monash.edu.au (Mr Stuart Lamble)
Subject: Re: gdb to read ELF cores
Date: 1997/04/02
Message-ID: <5hsefi$kgg$2@harbinger.cc.monash.edu.au>
X-Deja-AN: 230008893
X-NNTP-Posting-User: lamble
References: <33407398.6EA33A9F@peg.apc.org>
Organization: Monash University
Newsgroups: aus.computers.linux