Subject: Re: How to read a crash file?
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: current-users
Date: 12/10/2006 10:53:15
Juan RP --> current-users (2006-12-10 10:39:51 +0100):
> On Sunday 10 December 2006 10:37, Jukka Salmi wrote:
[...]
> > >       (gdb) target kcore netbsd.26.core
> >
> > Hmm, this seems to be working only with gdb 5.3. How can I do this
> > with -current's gdb 6.5?
> >
> > gdb netbsd.1
> > GNU gdb 6.5
> > [...]
> > (gdb) target kcore netbsd.1.core
> > Undefined target command: "kcore netbsd.1.core".  Try "help target".
> > (gdb) help target
> > [...]
> > target async -- Use a remote computer via a serial line
> > target child -- Unix child process (started by the "run" command)
> > target core -- Use a core file as a target
> > target exec -- Use an executable file as a target
> > target extended-async -- Use a remote computer via a serial line
> > target extended-remote -- Use a remote computer via a serial line
> > target kvm -- Use a kernel virtual memory image as a target
> > target remote -- Use a remote computer via a serial line
> > [...]
> 
> s/kcore/core/ iirc.

I tried this, but it doesn't seem to work:

(gdb) target core netbsd.1.core
"/opt/crash/netbsd.1.core" is not a core dump: File format not recognized
(gdb) 


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~