VG_(get_fnname_kind): Recognize gcc "optimized" below main functions.
commit24a94df7386ce4de56a9779bbb5a3214d20067af
authorMark Wielaard <mark@klomp.org>
Sun, 28 Feb 2021 23:26:00 +0000 (1 00:26 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 28 Feb 2021 23:26:00 +0000 (1 00:26 +0100)
tree9f4369492c0add75287b68b5909867676461e1cb
parent5d45e212a66fe83f593693adf452d4ea78dcf1d3
VG_(get_fnname_kind): Recognize gcc "optimized" below main functions.

The VG_(get_fnname_kind) function detects some special "below main"
function names. Specifically __libc_start_main and generic_start_main
both of which are used to call the actual main () function from the
application. We already recognized one variant, generic_start_main.isra.0,
but only for powerpc. Recognize all possibly specialed optimized variants
gcc can produce by simply checking for the function name with dot as
prefix. This fixes the memcheck/tests/supp_unknown.vgtest and
massif/tests/deep-D.vgtest with gcc 11.

We can now also get rid of the special cases in
massif/tests/deep-D.post.exp-ppc64 and memcheck/tests/supp_unknown.supp.

https://bugs.kde.org/show_bug.cgi?id=430158
coregrind/m_debuginfo/debuginfo.c
massif/tests/deep-D.post.exp-ppc64 [deleted file]
memcheck/tests/supp_unknown.supp