Re: gdb problem

From: Allan Jude <freebsd_at_allanjude.com>
Date: Wed, 19 Mar 2014 23:26:43 -0400
On 2014-03-19 23:03, Nilton Jose Rizzo wrote:
> I have problem with debug some files compiled with clang, my gbd from system 
> is 6.1.1, like showed.
> 
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd"...Dwarf Error: wrong version
> in compilation unit header (is 4, should be 2) [in module
> /home2/rizzo/src/Doutorado/main]
> 
> 
> and when I try to debug a program (main) show this error mesage.
> 
> What I do wrong?
> 
> Thanks 
> 
> P.S. the gdb of ports have a compile error, I send a mesage to mainteiner
> 
> Rizzo
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 

The debug format changed, so the gdb in base isn't much use anymore. You
can try lldb or gdb from ports (when it is fixed). Did you try grabbing
the compiled package of gdb from pkgng?

-- 
Allan Jude


Received on Thu Mar 20 2014 - 02:26:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:47 UTC