Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2011 10:18:47 +0300
From:      Chagin Dmitry <dchagin@freebsd.org>
To:        Xingxing Pan <panxingxing@mprc.pku.edu.cn>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: GSoC'11: DWARF2 call frame information
Message-ID:  <20110320071847.GA10579@dchagin.static.corbina.ru>
In-Reply-To: <AANLkTimp9qoOFr0VfK1F_r1nE3n_5d7W2-q_vSK_UzgW@mail.gmail.com>
References:  <AANLkTinz6B7fsG7Cjc3ZTZ0OAmsOG8x1P25EfOE7Bt4J@mail.gmail.com> <20110319174115.GA33282@dchagin.static.corbina.ru> <AANLkTimp9qoOFr0VfK1F_r1nE3n_5d7W2-q_vSK_UzgW@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 20, 2011 at 11:08:10AM +0800, Xingxing Pan wrote:
> 2011/3/20 Chagin Dmitry <dchagin@freebsd.org>:
> > On Sun, Mar 20, 2011 at 12:36:39AM +0800, Xingxing Pan wrote:
> >> Hi, everyone.
> >>
> >> I'm a student interested in the project "DWARF2 call frame
> >> information" for Summer of Code 2011.
> >> I'd like to know which compiler I will work on to add DWARF2 support.
> >> This project is not tagged by "suggested". Will it be ok to choose it
> >> as the target?
> >>
> >
> > hi Xingxing,
> >
> > You should carefully reread the proposed idea. Especially in the
> > "A debug kernel is not able to show stack traces with cross
> > exceptions anymore. This is because we do not emit any dwarf2
> > call frame information for any assembler code, since gdb switched
> > to the dwarf2 format" part.
> >
> > And, of course, this work is very important for the community. So, IMO,
> > it will be ok as the target :)
> > Thank you.
> >
> > --
> > Have fun!
> > chd
> >
>=20
> Hi chd,
>=20
> Thank you for your reply. I thought the dwarf2 call frame information
> was generated by the toolchain.

mostly yes. but not in the assembler code written by hand.

> That's why I care about the states of the compiler.
> I'm not quite understand the proposed idea. Could you show me more
> details of the project?
> I really appreciate your support.
>=20

hm, you should add the .cfi directive in each .S file by hand:
http://www.logix.cz/michal/devel/gas-cfi/

--=20
Have fun!
chd

--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAk2FqlYACgkQ0t2Tb3OO/O25FwCeOjO+c3sDZ13b09cCom1/TVdW
tg8AoIoake8QLWbKjWF8qI29jgHagmYs
=6zHk
-----END PGP SIGNATURE-----

--SLDf9lqlvOQaIe6s--



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