Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 1999 16:13:37 +1030
From:      Greg Lehey <grog@lemis.com>
To:        "Brian J. McGovern" <mcgovern@spoon.beta.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Changing gdb (3.0) to debug AOUT
Message-ID:  <19990101161337.M41841@freebie.lemis.com>
In-Reply-To: <199901010533.AAA24192@spoon.beta.com>; from Brian J. McGovern on Fri, Jan 01, 1999 at 12:33:32AM -0500
References:  <19990101111642.V39598@freebie.lemis.com> <199901010533.AAA24192@spoon.beta.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday,  1 January 1999 at  0:33:32 -0500, Brian J. McGovern wrote:
> The version with 3.0 complains that it can't understand the format of an
> a.out image. If you create a short C program, a la
>
> #include <stdio.h>
> void main(void)
>   {
>     printf("Hi!\n");
>   }
>
> and compile it a la:
>
> cc -aout -g -o foo foo.c
>
> Then go:
>
> gdb foo
>
> It will load gdb, then complain that the format is unrecognized....
>
> As a "work around", I recompiled a copy from my 2.2.6 machine with -static
> defined, and copied it over. It seems to work ok....

That's about the way to do it.  3.0 gdb doesn't currently support
a.out, but I believe somebody is working on it.

Have I missed a question in this message?

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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?19990101161337.M41841>