From owner-freebsd-ports Tue Oct 29 4:16:35 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27B0737B401; Tue, 29 Oct 2002 04:16:32 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3961543E4A; Tue, 29 Oct 2002 04:16:31 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.5/8.12.3) with ESMTP id g9TCF93U074787; Tue, 29 Oct 2002 13:15:09 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.5/8.12.4/Submit) id g9TCF8hU074771; Tue, 29 Oct 2002 13:15:08 +0100 (CET) Date: Tue, 29 Oct 2002 13:15:08 +0100 From: Stijn Hoop To: Jonathon McKitrick Cc: freebsd-ports@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Need help debugging Windowmaker coredump Message-ID: <20021029121508.GF76903@pcwin002.win.tue.nl> References: <20021029120644.GA52003@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VUDLurXRWRKrGuMn" Content-Disposition: inline In-Reply-To: <20021029120644.GA52003@dogma.freebsd-uk.eu.org> User-Agent: Mutt/1.4i X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --VUDLurXRWRKrGuMn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 29, 2002 at 12:06:44PM +0000, Jonathon McKitrick wrote: >=20 > Hi all, >=20 > I'm trying to figure out how to get more debugging info out of my core du= mp. > Here's all I have so far: >=20 > local:~> gdb -c wmaker.core=20 > GNU gdb 4.18 (FreeBSD) > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-unknown-freebsd". > Core was generated by `wmaker'. > Program terminated with signal 11, Segmentation fault. > #0 0x80967d6 in ?? () > (gdb) where > #0 0x80967d6 in ?? () > #1 0x80706cb in ?? () > #2 0x807f975 in ?? () > #3 0x806c3d8 in ?? () > #4 0x804d219 in ?? () > (gdb)=20 >=20 > This obviously isn't much help. What do I need to include in the port bu= ild > to get more debugging info so I can post a helpful core dump? >=20 > NOTE: Please CC me, as I am not currently subscribed. Thanks. You want to pass the -g option to the compiler, to get gdb to emit source file names and linenumbers. Most of the time something like this works: /usr/ports/x11-wm/windowmaker# make CFLAGS=3D"-g" STRIP=3D"" all install But this depends on whether the port honors your custom CFLAGS. Note that usually you don't have to install the debug version, you can also run the resulting binary from the work/windowmaker-0.xxx/... subdirs. Hope this helps, --Stijn --=20 Fairy tales do not tell children that dragons exist. Children already know dragons exist. Fairy tales tell children the dragons can be killed. -- G.K. Chesterton --VUDLurXRWRKrGuMn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9vnvMY3r/tLQmfWcRAuH4AKCL1/PMVlWN0xL8SSFKViQMFpsu4QCfQE0z jtoLb2a8PuFUDe/qh+jD5CQ= =OCPs -----END PGP SIGNATURE----- --VUDLurXRWRKrGuMn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message