Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2011 10:28:51 -0700
From:      perryh@pluto.rain.com
To:        panxingxing@mprc.pku.edu.cn
Cc:        kostikbel@gmail.com, freebsd-hackers@freebsd.org, dchagin@freebsd.org
Subject:   Re: GSoC'11: DWARF2 call frame information
Message-ID:  <4d88dc53.%2BBnpvakcLKUHMZGE%perryh@pluto.rain.com>
In-Reply-To: <AANLkTi=nvGeGRVk2KV-6G8ktAohcaOZXpS%2B1MRBbYcJu@mail.gmail.com>
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> <AANLkTinxVYZcfvpj4mn7kd%2BfiJ83p7430JSsqxatHCeZ@mail.gmail.com> <20110320181911.GA79862@dchagin.static.corbina.ru> <AANLkTinx%2Bv5ZRr7zq%2BP8gW=umX3PNvhfXpgW8bmUZdtw@mail.gmail.com> <20110321173204.GA7575@dchagin.static.corbina.ru> <20110321200025.GP78089@deviant.kiev.zoral.com.ua> <AANLkTi=nvGeGRVk2KV-6G8ktAohcaOZXpS%2B1MRBbYcJu@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Xingxing Pan <mprc.pku.edu.cn> wrote:

> Dose full register tracking means to emit DWARF for all the
> registers's saving and restoring in the life time of the function?

Most assembly functions are leaves, so saving/restoring around
calls to lower-level functions will be infrequent.  I suspect
it would be more useful to emit debug records that show how the
registers are being used, so that gdb can display meaningful
names along with their values.  And yes, this requires reading
and understanding the comments if the code is well commented,
or analyzing the code if it is not well commented.  It can't be
automated.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d88dc53.%2BBnpvakcLKUHMZGE%perryh>