]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r260880 (by kaiw, from projects/elftoolchain):
authordim <dim@FreeBSD.org>
Sat, 29 Mar 2014 17:18:23 +0000 (17:18 +0000)
committerdim <dim@FreeBSD.org>
Sat, 29 Mar 2014 17:18:23 +0000 (17:18 +0000)
commitebd9ec5dee2970de8d091741548bbf03e85ab6c1
treee435dc2f60169cb31132f3c485f22ff4c1a426b1
parent16ced9806597f879f890ee19b9b4b6b58b10aebe
MFC r260880 (by kaiw, from projects/elftoolchain):

  * Make die_mem_offset() be able to handle DW_AT_data_member_location
    attributes generated by Clang 3.4.
  * Document how different compilers generate DW_AT_data_member_location
    attributes differently.
  * Document the quirks about DW_FORM_data[48].

This is a slightly modified version, adapted to work with the old
libdwarf in stable/9 and stable/10.  It should fix DTrace on these
branches, when the kernel is compiled with clang 3.4.

Note that you have to build *and* install the CTF tools first, before
building the kernel.  Otherwise you can possibly still get error
messages similar to "failed to copy type of 'pr_uid': Type information
is in parent and unavailable", when attempting to run dtrace(1).

Submitted by: kaiw
cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c