From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 12:06:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE71F37B40A for ; Wed, 26 Mar 2003 12:06:32 -0800 (PST) Received: from bsdsi.homeunix.com (b074154.adsl.hansenet.de [62.109.74.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4696E43FDD for ; Wed, 26 Mar 2003 12:06:04 -0800 (PST) (envelope-from mm@bsdsi.com) Received: from bsdsi.homeunix.com (localhost [127.0.0.1]) by bsdsi.homeunix.com (8.12.8/8.12.8) with ESMTP id h2QK4oHn010148 for ; Wed, 26 Mar 2003 21:04:50 +0100 (CET) (envelope-from mm@bsdsi.com) Received: (from mm@localhost) by bsdsi.homeunix.com (8.12.8/8.12.8/Submit) id h2QK4nw6010147 for freebsd-questions@freebsd.org; Wed, 26 Mar 2003 21:04:49 +0100 (CET) X-Authentication-Warning: bsdsi.homeunix.com: mm set sender to mm@bsdsi.com using -f Date: Wed, 26 Mar 2003 21:04:49 +0100 From: Martin Moeller To: FreeBSD Questions Message-ID: <20030326200449.GB967@bsdsi.homeunix.com> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Priority: normal X-Operating-System: FreeBSD CURRENT, http://www.freebsd.org/ X-Mailer: Mutt 1.5.3i, http://www.mutt.org/ X-PGP: Send mail with subject 'send key pub' for public key! X-Location: Hamburg, Germany, European Union X-Uptime: 8:44pm up 29 mins, 2 users, load averages: 0,02 0,15 0,15 User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-7.9 required=5.0 tests=USER_AGENT_MUTT,X_AUTH_WARNING autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: How to produce debugging symbols? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 20:06:36 -0000 Hello, everybody! I have a rather general question on debugging. I'm experiencing some problems with some programs on FreeBSD 5.0. Because I'm quite a unix newbie, I can only write to some mailinglists to ask if somebody knows what to do. But I would like to take a few steps to solve my problems on my own. I read something about gdb and kernel debugging, but find that somehow disturbing. So I would like to ask a very *stupid* newbie question: I can run a program within gdb, but I don't see the program's source code. I assume this is meant with debug symbols? How can I compile a program with those debug symbols? Any help appreciated! Regards, Martin -- Martin Möller http://www.bsdsi.com/ GnuPG/PGP DSA ID: 0x3C979285 ICQ # 82221572 I do not accept unsolicited commercial mail. Do not spam me!