Date: Fri, 28 Feb 2003 11:58:00 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: Brian Henning <b1henning@hotmail.com> Cc: freebsd <freebsd-questions@FreeBSD.ORG> Subject: Re: gdb Message-ID: <20030227225800.GA51331@grimoire.chen.org.nz> In-Reply-To: <OE68aO1VVmUwInsdwhb0001e813@hotmail.com> References: <OE68aO1VVmUwInsdwhb0001e813@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 27, 2003 at 04:07:44PM -0600, Brian Henning wrote:
> Hello-
> i am trying to get familiar with gdb so i wrote this code knowing that i will
> get a core dump.
> when i try to run the following command i get some error about not being in the
> proper format.
> what can i do to remedy the problem?
> thanks,
> brian
>
> >gcc -ggdb gen_core.c
> >./a.out
> >gdb core
> "/home/henninb/core": not in executable format: File format not recognized
That should be:
gcc -g gen_core.c
./a.out
gdb a.out a.out.core
--
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
Experience is a hard teacher
because she gives the test first, the lesson afterwards
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030227225800.GA51331>
