gdb / dwarf issue (SOLVED)

Gary Aitken ah at
Wed Nov 16 03:49:01 UTC 2016

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.


More information about the freebsd-questions mailing list