lkml.org 
[lkml]   [1996]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how do I debug core files?
leisner@sdsp.mc.xerox.com wrote:
>How do I examine core files?
[snip]
>Couldn't fetch registers from core file: File in wrong format
>Couldn't fetch registers from core file: File in wrong format
>#0 0x0 in ?? ()
>(gdb)

I'm getting this too. The problem here seems to be that gdb wants
core files to be a.out. It can perfectly well cope with ELF
*programs*, but can't read ELF cores.

Is there a build time configuration for gdb that will make this
work? I've tried "./configure i486-linux-elf" but it says it can't
compile for that host. Trying "./configure i486-linux --target
i486-linux-elf" made the thing build, but then it wouldn't do
anything remotely useful for me once it had.

Am I going to have to crawl into the murky depths of gdb's
configuration scripts? Or is there a nice, simple, easy way to do
this that I've missed?

If there isn't, it occurs to me that gdb becomes a lot less
useful...

/ o Simon Tatham E-mail to: sgt20@cam.ac.uk
\ I /\/\ O /\/ http://callisto.girton.cam.ac.uk/users/sgt20
/ ~~~~~~~~~~~~~~~~~ Trinity College, Cambridge, CB2 1TQ, England


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.039 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site