[FUG-BR] gdb e dwarf

Nilton Jose Rizzo rizzo em i805.com.br
Segunda Março 3 14:17:19 BRT 2014


Em Mon, 3 Mar 2014 21:53:24 -0300, Eduardo Antonio Bortolini escreveu
> Olá,
> 
> pelo que pude entender, ele está "reclamando" do formato das 
> informações de depuração. O GDB precisa ler informações pra lhe 
> fornecer informações "amigáveis" para depuração.  O seu programa 
> deve ter sido compilado com a versão 4 do Dwarf, e o gdb consegue 
> entender o formato 2. Acho que atualizando o gdb funcionaria, ou 
> você recompilar usando a opção -gdwarf-version do gcc.  Pelo menos é 
> o que penso estar ocorrendo.

   sim, o problema é que eu atualizei a abase do sistema todo (make
buildworld, make installworld e make kernel e para a base não uso gcc
só clang ..... esse é o problema está com erro em alguma coisa que
eu não achei .... estou recompilando de novo o sistema vamos ver

Rizzo

> 
> 2014-03-03 13:40 GMT-03:00 Nilton Jose Rizzo <rizzo at i805.com.br>:
> 
> > olhem só que error deu no debugger
> >
> > rizzo at valfenda:~/src/Doutorado % gdb mainqueue
> >   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/mainqueue]
> >
> > (gdb) quit
> > rizzo at valfenda:~/src/Doutorado %
> > apesar de o executável rodar no sistema ok
> > porém não consigo debugar
> >
> >
> > vejam
> >
> > (gdb) run
> > Starting program: /home2/rizzo/src/Doutorado/mainqueue
> > (no debugging symbols found)...(no debugging symbols found)...(no debugging
> > symbols found)...(no debugging symbols found)...(no debugging symbols
> > found)...(no debugging symbols found)...Empty Queue
> > Element Value = 215
> > Element Value = 122
> > Element Value = 215
> > Element Value = 41
> > Element Value = 41
> > Element Value = 215
> > Element Value = 41
> > Element Value = 295
> > Element Value = 295
> > Element Value = 215
> > Element Value = 41
> > Element Value = 295
> > Element Value = 197
> > Element Value = 197
> > Element Value = 215
> > Element Value = 41
> > Element Value = 295
> > Element Value = 197
> > Element Value = 255
> > Element Value = 255
> > Queue Size = 6
> > Element Value = 215
> > Element Value = 41
> > Element Value = 295
> > Element Value = 197
> > Element Value = 255
> > Element Value = 255
> >
> > Program exited normally.
> > (gdb)
> >
> > e o pior é que atualizei o sistema ontem
> >
> > rizzo at valfenda:~/src/Doutorado % uname -a
> > FreeBSD valfenda 11.0-CURRENT FreeBSD 11.0-CURRENT #14 r262682: Sun Mar  2
> > 08:20:10 BRT 2014     root@:/usr/obj/usr/src/sys/VALFENDA  amd64
> > rizzo at valfenda:~/src/Doutorado %
> >
> > Alguma luz no fim do tunel?
> >
> > Rizzo
> >
> >
> > -------------------------
> > Histórico: http://www.fug.com.br/historico/html/freebsd/
> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> >
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd



Mais detalhes sobre a lista de discussão freebsd