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
    gdb a.out a.out.core

Jonathan Chen <[EMAIL PROTECTED]>
                                          Experience is a hard teacher
               because she gives the test first, the lesson afterwards

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
  • gdb Brian Henning
    • Jonathan Chen

Reply via email to