]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Update DW_TAG_subprogram parsing for clang
authorMark Wielaard <mark@klomp.org>
Sat, 21 Jun 2025 21:04:04 +0000 (23:04 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 21 Jun 2025 21:18:29 +0000 (23:18 +0200)
commit116a1c8242891b5ddcd1ce9704b0ab90143cc968
treea58e45dd01254b2cdfb198b323e5ff4918eecd2f
parentc38e9220c3efb2b11c94e744fe679851a4c63957
Update DW_TAG_subprogram parsing for clang

Clang doesn't give a name for some artificial subprograms. In that
case just use "<artificial>" as the name of the DW_TAG_subprogram.

Clang also sometimes generates a DW_TAG_subprogram without any
attributes. These aren't really useful for us. So just silently skip
them.

If we warn about subprograms without a name, specification or abstract
origin, also emit the index in the .debug_info section to make it
easier to look them up.
coregrind/m_debuginfo/readdwarf3.c