From owner-freebsd-questions@FreeBSD.ORG Sat Aug 24 17:48:11 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9319ABA9 for ; Sat, 24 Aug 2013 17:48:11 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F9E12AC1 for ; Sat, 24 Aug 2013 17:48:11 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id kp13so1865327pab.35 for ; Sat, 24 Aug 2013 10:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Vq44eJXKBC/6a3TiE/zo/UqdezLoq0BtumPwGOTxWBU=; b=ulDevLhpFxmchrw53WKZgIroScuNWOlAv9uhRf+9Ysjy/VNNJvdBMKW5zgqRzKBICW E6dzDNZL5h+6OqyvHyJFvChmcQh6OZbivKu8eHxfJPob8YzBOIzEZo4XrBlwcXj74T1t RwFffXFoFTTHPPFGACLJyPqpZVNYPjkNp4eh58L+XAeD13OlKZPvftOX3otORg5T2wU4 w9FAsaUoMt8SmrhRLm08H/xZPjwOG+C8YvIGzLf1PF6Jl9Ka8EjZkNysqjIK1JyzkgW/ xpFHw1zmmnu2t1k0IgbO6IptESzByYHILPpof51BRzvSYstrUezIaftLZe2ZCBlMMjvb Uo+g== MIME-Version: 1.0 X-Received: by 10.66.122.40 with SMTP id lp8mr5263946pab.82.1377366490863; Sat, 24 Aug 2013 10:48:10 -0700 (PDT) Received: by 10.68.129.99 with HTTP; Sat, 24 Aug 2013 10:48:10 -0700 (PDT) In-Reply-To: <5218D9B4.1060003@blackfoot.net> References: <5218D9B4.1060003@blackfoot.net> Date: Sat, 24 Aug 2013 13:48:10 -0400 Message-ID: Subject: Re: how to find where a port came from and rebuild with debug symbols From: "illoai@gmail.com" To: Gary Aitken Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Aug 2013 17:48:11 -0000 On 24 August 2013 12:05, Gary Aitken wrote: > If I have a core file that implicates a library: > #0 0x000000080525cab0 in wxWindow::DoSetSize () from /usr/local/lib/libwx_gtk2u_core-2.8.so.0 > and > #16 0x00000008056bf720 in wxAuiManager::Update () from /usr/local/lib/libwx_gtk2u_aui-2.8.so.0 > > and I want to find out which port these came from so I can rebuild it > with debug symbols, how do I do that? As to the first look at pkg-which(8): % pkg which /usr/local/lib/libwx_gtk2_aui-2.8.so.0 /usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package wxgtk2-2.8.12_2 % pkg which -o /usr/local/lib/libwx_gtk2_aui-2.8.so.0 /usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package x11-toolkits/wxgtk28 (the -q flag makes it all lovely & terse) As to the second: I don't know, some ports have an option to build with debug symbols, but if not you might have to edit some Makefiles, or worse. -- --