gdb problem

2014-03-19 Thread Nilton Jose Rizzo
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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: gdb problem

2014-03-19 Thread Allan Jude
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@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@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



signature.asc
Description: OpenPGP digital signature