GSoC'11: DWARF2 call frame information

perryh at pluto.rain.com perryh at pluto.rain.com
Tue Mar 22 17:30:52 UTC 2011


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.


More information about the freebsd-hackers mailing list