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

next in thread | previous in thread | raw e-mail | index | archive | help
2011/3/20 Chagin Dmitry <dchagin@freebsd.org>:
> 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
>> >
>>
>> Hi chd,
>>
>> 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.
>>
>
> hm, you should add the .cfi directive in each .S file by hand:
> http://www.logix.cz/michal/devel/gas-cfi/
>
> --
> Have fun!
> chd
>

Thanks for your reply. I think I have got the idea.
For the object files generated by the toolchain, there's no need to worry about
DWARF call frame information if the DWARF is supported by the toolchain.But
the assembly written by hand is an exception.
Different architecture has different assembly. That means I have to add DWARF
for all these architectures currently supported by FreeBSD. Maybe I need a
powerfull script.

Xingxing Pan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinxVYZcfvpj4mn7kd%2BfiJ83p7430JSsqxatHCeZ>