Date: Thu, 01 Aug 96 12:50:15 +0200 From: garyj@frt.dec.com To: Jean-Paul POIRET <jpp@vtcom.fr> Cc: questions@freebsd.org Subject: Re: Can really gdb examine a core file ? Message-ID: <9608011050.AA17216@cssmuc.frt.dec.com> In-Reply-To: Message from Jean-Paul POIRET <jpp@vtcom.fr> of Wed, 31 Jul 96 18:42:53 %2B0200.
next in thread | previous in thread | raw e-mail | index | archive | help
jpp@vtcom.fr writes: > Hello ! When I try a post-mortem analysis with Gdb of a C programm with a > bss array , like this es.c : > --------------------------- > | int titi[1000]; | > | f() | > | { | > | int l = 4; | > | kill(getpid(),6); | > | } | > | main() | > | { | > | titi[0] = 461; | > | f(); | > | } | > --------------------------- > > gcc -g -c es.c > gcc -g -o es es.o > ./es > Abort (core dumped) > > Thus, I have got the core file: > > -rw------- 1 jpp jpp 147456 Jul 31 18:34 es.core > > Now, I wish to examine the core file : > [gdb output deleted] try generating a staic binary and see if that helps. gdb has problems looking at a core dump from a dynamic binary since the shared libraries aren't mapped any more. --- Gary Jennejohn (work) gjennejohn@frt.dec.com (home) Gary.Jennejohn@munich.netsurf.de (play) gj@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9608011050.AA17216>