Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2014 23:26:43 -0400
From:      Allan Jude <freebsd@allanjude.com>
To:        freebsd-current@freebsd.org
Subject:   Re: gdb problem
Message-ID:  <532A5FF3.90907@allanjude.com>
In-Reply-To: <20140320025555.M46170@i805.com.br>
References:  <20140320025555.M46170@i805.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--movroatxfhAVw5fofSrnEojRkCM8Pw10i
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 2014-03-19 23:03, Nilton Jose Rizzo wrote:
> I have problem with debug some files compiled with clang, my gbd from s=
ystem=20
> is 6.1.1, like showed.
>=20
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and yo=
u are
> welcome to change it and/or distribute copies of it under certain condi=
tions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for deta=
ils.
> 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]
>=20
>=20
> and when I try to debug a program (main) show this error mesage.
>=20
> What I do wrong?
>=20
> Thanks=20
>=20
> P.S. the gdb of ports have a compile error, I send a mesage to maintein=
er
>=20
> Rizzo
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
>=20

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?

--=20
Allan Jude


--movroatxfhAVw5fofSrnEojRkCM8Pw10i
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTKl/zAAoJEJrBFpNRJZKfs+0QAIAkOGemxtZ3v9O9rfYqdw7H
63locLf9gWrtwPGOGrDyDgv28tYtQilaylLEP3sZOP5CWQrwyEfn9nLVDllZdNUB
s0cJ6ZVuSv5nj92i4CWhnacR4KoMJXFsHSCcjEeSnLBNzp/W2GOvVMxEr3c0nMIN
k8Gk5e1Zt87a9ROLgFyPO8CFuNTGxJVoUpOvM0XH/dnefmYAxFKB8k7Ydcnt4Yvg
rzFN91k4lsGCk5SGPHaUi329eG+HJqLL7Vaeu6SD+L7BDZ+6GmFBM1EsSNLnRYeA
Z8KfCI+5G77Lzfb4KSRIOyCzM7eBt7s6Iv795Z0aLmMheEDS/Tv+HjCa/mQL4Zxw
4SsREYBIXCUMcnfJX0hub2qS/ZZ9dEvlAjquoT3M3yMRRRXVlL0gBGHsniHp0dtP
yuuVxFvCNqkNHJg/J+BTaj/XzkgKRlTEr1WYN4ygnODchpEe2ehVSZMjOV4MNqHY
wNui/Zo8eK9FiKppuan8E5LhIYxhqsKbXHwoRzoVUID9hWimVeCEa9i4Q8bqiO8a
jzYlbJiq5+uC5a2GxlrznL8hBdbKxDrHxebr9lE4ntRwU6UL5dpEC0IP/7mIitqS
FP6hPpASRVU0l9lZYD87IsaH9DTKVUEkH4UkC34rVGUDTTMxsTGaGOHOo1cHXfBw
Fq5HKUirFKDhjdN5aRgn
=ruTp
-----END PGP SIGNATURE-----

--movroatxfhAVw5fofSrnEojRkCM8Pw10i--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?532A5FF3.90907>