gdb problem

Allan Jude freebsd at allanjude.com
Thu Mar 20 03:26:46 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140319/d4969d09/attachment.sig>


More information about the freebsd-current mailing list