Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 16:07:44 -0600
From:      "Brian Henning" <b1henning@hotmail.com>
To:        "freebsd" <freebsd-questions@FreeBSD.ORG>
Subject:   gdb
Message-ID:  <OE68aO1VVmUwInsdwhb0001e813@hotmail.com>

next in thread | raw e-mail | index | archive | help
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

gen_core.c
-----------
#include <stdio.h>

int main() {
    int x = 1/0;
    return 0;
}

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?OE68aO1VVmUwInsdwhb0001e813>