From owner-freebsd-questions Thu Dec 31 21:44:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05106 for freebsd-questions-outgoing; Thu, 31 Dec 1998 21:44:22 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04905 for ; Thu, 31 Dec 1998 21:44:17 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id QAA16415; Fri, 1 Jan 1999 16:13:34 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id QAA42495; Fri, 1 Jan 1999 16:13:38 +1030 (CST) Message-ID: <19990101161337.M41841@freebie.lemis.com> Date: Fri, 1 Jan 1999 16:13:37 +1030 From: Greg Lehey To: "Brian J. McGovern" Cc: questions@FreeBSD.ORG Subject: Re: Changing gdb (3.0) to debug AOUT References: <19990101111642.V39598@freebie.lemis.com> <199901010533.AAA24192@spoon.beta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199901010533.AAA24192@spoon.beta.com>; from Brian J. McGovern on Fri, Jan 01, 1999 at 12:33:32AM -0500 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > 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