]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r247960:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Mar 2013 21:18:19 +0000 (21:18 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Mar 2013 21:18:19 +0000 (21:18 +0000)
commit502fa867044e59dfb3aeb0f2e0b3071242ef9b43
tree4432f71fe9a6e20da8d6a3a1772f1e62a0db07b7
parent6a0b61b6db2aba08c60833e798b2a452bfa3c853
MFC r247960:

  Make ctfconvert work correctly on clang-compiled object files.  Clang
  puts the full original source filename in the STT_FILE entry of the ELF
  symbol table, while gcc saves only the basename.

  Since the DWARF DW_AT_name attribute contains the full source filename,
  both for clang and gcc, ctfconvert takes just the basename of it, for
  matching with the STT_FILE entry.  So when attempting to match with such
  an entry, use its basename, if necessary.

  Reported by: avg

MFC r247962:

  Fix error in r247960: actually assign the basename to match.iim_file.

  Pointed out by: avg
  Pointy hat to: dim

git-svn-id: svn://svn.freebsd.org/base/stable/9@248284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/tools/ctf/cvt/output.c