From owner-freebsd-current Mon May 27 10:55: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 3AE3537B401 for ; Mon, 27 May 2002 10:54:56 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g4RHstJn060332; Mon, 27 May 2002 10:54:55 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g4RHstQC060331; Mon, 27 May 2002 10:54:55 -0700 (PDT) Date: Mon, 27 May 2002 10:54:55 -0700 From: "David O'Brien" To: Jun Kuriyama Cc: freebsd-current@FreeBSD.ORG Subject: Re: gdb breaks world Message-ID: <20020527105455.C58964@dragon.nuxi.com> Reply-To: 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> <20020522115339.A81067@dragon.nuxi.com> <7mznyme3ts.wl@black.imgsrc.co.jp> <20020526194539.A13949@dragon.nuxi.com> <7mn0umdq4j.wl@black.imgsrc.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <7mn0umdq4j.wl@black.imgsrc.co.jp>; from kuriyama@imgsrc.co.jp on Mon, May 27, 2002 at 04:08:44PM +0900 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 04:08:44PM +0900, Jun Kuriyama wrote: > At Mon, 27 May 2002 02:46:01 +0000 (UTC), > David O'Brien wrote: > > Add it to COPTFLAGS. Why are you adding it to DEBUG? > > ``grep DEBUG /sys/conf/*.mk /sys/conf/Makefile.*'' shows DEBUG is not > > used this way. > > I added it to DEBUG because I think "-gstabs+" will be used as > replacement of "-g". I added it to COPTFLAGS and tried again, but no > luck. > > makeoptions COPTFLAGS=-gstabs+ #Build kernel with gdb(1) debug symbols Verify that your entire kernel is built with "-g -gstabs+". If you still cannot use gdb on a core dump, maybe there is a core dump format change GDB needs to catch up with. Please use the various objdump, etc. tools to verify what type of debugging is in kernel.debug. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message