[lkml]   [1996]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: how do I debug core files? wrote:
>How do I examine core files?
>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 ?? ()

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

/ o Simon Tatham E-mail to:
\ I /\/\ O /\/
/ ~~~~~~~~~~~~~~~~~ Trinity College, Cambridge, CB2 1TQ, England

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