Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2016 20:48:54 -0700
From:      Gary Aitken <>
To:        FreeBSD Mailing List <>
Subject:   Re: gdb / dwarf issue (SOLVED)
Message-ID:  <>
In-Reply-To: <>
References:  <> <>

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:
>> $ 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.


Want to link to this message? Use this URL: <>