From: Philippe Waroquiers Date: Sat, 23 Sep 2017 11:49:05 +0000 (+0200) Subject: On ppc, add generic_start_main.isra.0 as a below main function X-Git-Tag: VALGRIND_3_14_0~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8259193f1cfd8cfb3b5a3362261cf5c7f00f3495;p=thirdparty%2Fvalgrind.git On ppc, add generic_start_main.isra.0 as a below main function We can have stacktraces such as: ==41840== by 0x10000927: a1 (deep.c:27) ==41840== by 0x1000096F: main (deep.c:35) ==41840== by 0x4126BEB: generic_start_main.isra.0 (in /usr/lib64/libc-2.17.so) ==41840== by 0x4126E13: __libc_start_main (in /usr/lib64/libc-2.17.so) So, add generic_start_main.isra.0 as a below main function. This fixes the test massif/tests/deep-D --- diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index e01f19a7cb..3817ecfe4e 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -1987,6 +1987,9 @@ Vg_FnNameKind VG_(get_fnname_kind) ( const HChar* name ) # if defined(VGO_linux) VG_STREQ("__libc_start_main", name) || // glibc glibness VG_STREQ("generic_start_main", name) || // Yellow Dog doggedness +# if defined(VGA_ppc32) || defined(VGA_ppc64be) || defined(VGA_ppc64le) + VG_STREQ("generic_start_main.isra.0", name) || // ppc glibness +# endif # elif defined(VGO_darwin) // See readmacho.c for an explanation of this. VG_STREQ("start_according_to_valgrind", name) || // Darwin, darling