Subject: Re: Pb: gdb cannot read core from 2.0.8 (is it a gdb or kernel problem)?

From: Yves Arrouye <[email-masked]>
Date: Sat, 10 Aug 1996 11:10:56 +0200

Miquel van Smoorenburg writes:
 > You (Yves Arrouye) wrote:
 > > GDB 4.15.1 (i486-linux), Copyright 1995 Free Software Foundation, Inc...
 > > 
 > > "0¨´
 > >     @/core": not in executable format: File format not recognized
 > > 
 > > So there's a problem there. Do you have an idea about who is faulty? Gdb?
 > 
 > As I understand it, the way you call gdb is
 > 
 > gdb [executable] [its core file]
 > 
 > preferrably with [executable] compiled with -g and linked statically
 > 
 > I doubt that gdb can read core files without an accompanying executable..

You're right, sorry. It's

	gdb [otheropts] [prog[core|procID]]

But the message is really misleading... It would ne nice if Gdb checked
wether the prog arg was a core first, and in this case tell that's the
case and remind usage. (Not that I ask that it does that: I should have
read the manual page, of course.)

Yves.

---

From: Ian Jackson <[email-masked]>
Date: Sat, 10 Aug 96 17:56 BST

Yves Arrouye writes ("Re: Pb: gdb cannot read core from 2.0.8 (is it a gdb or kernel problem)?"):
...
> read the manual page, of course.)

You might also see my bug report, #3515.

Ian.

---

From: Mark Eichin <[email-masked]>
Date: 10 Aug 1996 18:49:46 -0400

> wether the prog arg was a core first, and in this case tell that's the

This is hard -- on many architectures, core files are of the same
format as executables, so the distinctions are subtle.