Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 20:48:54 -0700
From:      Gary Aitken <ah@dreamchaser.org>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: gdb / dwarf issue (SOLVED)
Message-ID:  <ed37fdc2-b572-d5b8-346d-1ace05dc7061@dreamchaser.org>
In-Reply-To: <afa0f816-6767-6f2e-4ad4-7bce2b2e5338@dreamchaser.org>
References:  <ae0716b6-2f88-f6d1-2500-4fb860fc5b54@dreamchaser.org> <afa0f816-6767-6f2e-4ad4-7bce2b2e5338@dreamchaser.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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:
<snip>
>> $ gdb /usr/local/bin/rawtherapee GNU gdb 6.1.1 [FreeBSD] <snip> 
>> 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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?ed37fdc2-b572-d5b8-346d-1ace05dc7061>