From owner-freebsd-questions Mon Feb 19 17:16:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id E5B2B37B491 for ; Mon, 19 Feb 2001 17:16:46 -0800 (PST) Received: from m45-mp1-cvx1b.gui.ntl.com ([62.252.8.45]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20010220011645.YXZG285.mta06-svc.ntlworld.com@m45-mp1-cvx1b.gui.ntl.com>; Tue, 20 Feb 2001 01:16:45 +0000 Date: Tue, 20 Feb 2001 01:25:12 +0000 (GMT) From: George Reid X-Sender: greid@sobek.openirc.co.uk To: hanbauder@netscape.net Cc: questions@FreeBSD.ORG Subject: Re: Debug with gdb In-Reply-To: <24683761.3B542437.02FF9DBE@netscape.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 19 Feb 2001 hanbauder@netscape.net wrote: > Hello, > I have a executable binary "program" which is generated like this: > > gcc -c program.c -Wall > gcc -c program_1.c -Wall > gcc -c program_2.c -Wall > gcc program.o program_1.o program_2.o -o program -g -Wall You need to compile the individual modules with -g as well. G "And then it comes to be that the soothing light at the end of your tunnel was just a freight train, comin' your way." George Reid * greid@ukug.uk.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message