From owner-freebsd-current Sun May 26 19:35:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from leviathan.inethouston.net (leviathan.inethouston.net [66.64.12.249]) by hub.freebsd.org (Postfix) with ESMTP id E683E37B405; Sun, 26 May 2002 19:35:22 -0700 (PDT) Received: by leviathan.inethouston.net (Postfix, from userid 1001) id 45AC23198CE; Sun, 26 May 2002 21:35:28 -0500 (CDT) Date: Sun, 26 May 2002 21:35:28 -0500 From: "David W. Chapman Jr." To: Jun Kuriyama Cc: David O'Brien , freebsd-current@FreeBSD.ORG Subject: Re: gdb breaks world Message-ID: <20020527023528.GB88906@leviathan.inethouston.net> Reply-To: "David W. Chapman Jr." Mail-Followup-To: Jun Kuriyama , David O'Brien , freebsd-current@FreeBSD.ORG References: <20020518125604.A72462@troutmask.apl.washington.edu> <20020519180529.A81591@troutmask.apl.washington.edu> <3CE8642A.E00F6663@mindspring.com> <200205220957.24351.dfr@nlsystems.com> <7mznyme3ts.wl@black.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7mznyme3ts.wl@black.imgsrc.co.jp> User-Agent: Mutt/1.3.99i X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, May 27, 2002 at 11:12:47AM +0900, Jun Kuriyama wrote: > At Wed, 22 May 2002 18:54:02 +0000 (UTC), > David O'Brien wrote: > > -ggdb means to use the most "expressive" debugging format the compiler > > knows about. You want -gstabs+ or -gstabs > > I cannot debug a kernel with -gstabs+ option. Any hints about this? > > % cd sys/i386/compile/WATERBLUE > % grep gdb ../../conf/WATERBLUE > makeoptions DEBUG=-gstabs+ #Build kernel with gdb(1) debug symbols > % sudo gdb52 > (gdb) symbol-file kernel.debug > Reading symbols from kernel.debug...done. > (gdb) exec-file kernel > (gdb) core-file /var/crash/vmcore.4 > "/var/crash/vmcore.4" is not a core dump: File format not recognized > Last time I checked, gdb was broken in -current and people were encouraged to use gdb in the ports system, but this may be oudated. -- David W. Chapman Jr. dwcjr@inethouston.net Raintree Network Services, Inc. dwcjr@freebsd.org FreeBSD Committer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message