From owner-freebsd-questions@freebsd.org Wed Nov 16 03:49:01 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8776C42961 for ; Wed, 16 Nov 2016 03:49:01 +0000 (UTC) (envelope-from ah@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 746F6212 for ; Wed, 16 Nov 2016 03:49:00 +0000 (UTC) (envelope-from ah@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [192.168.151.122]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id uAG3mssa011314 for ; Tue, 15 Nov 2016 20:48:55 -0700 (MST) (envelope-from ah@dreamchaser.org) Subject: Re: gdb / dwarf issue (SOLVED) Reply-To: freebsd@dreamchaser.org References: To: FreeBSD Mailing List From: Gary Aitken Message-ID: Date: Tue, 15 Nov 2016 20:48:54 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 15 Nov 2016 20:48:55 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 03:49:01 -0000 On 11/15/16 11:51, Gary Aitken wrote: > On 11/14/16 22:55, Gary Aitken wrote: >> I'm having trouble getting gdb to agree to look at symbols: >> $ gdb /usr/local/bin/rawtherapee GNU gdb 6.1.1 [FreeBSD] >> This GDB was configured as "amd64-marcel-freebsd"...Dwarf Error: >> wrong version in compilation unit header (is 4, should be 2) [in >> module /usr/local/bin/rawtherapee] (gdb) break main No symbol table >> is loaded. Use the "file" command. The solution is to compile the devel/gdb port, which installs gdb 7.11.1. It appears to be able to deal with the different Dwarf versions. It is installed as /usr/local/bin/gdb, so one has to be careful of the path when starting it, since /usr/bin/gdb (6.1.1) still exists. Gary