To reduce the endless nuisance of multiple different names for "the

frame below main()" screwing up the testsuite, change all known
incarnations of said into a single name, "(below main)".



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5547
This commit is contained in:
Julian Seward 2006-01-18 04:20:04 +00:00
parent 0789d0e5a1
commit 8a00ed8174
3 changed files with 10 additions and 3 deletions

View File

@ -90,6 +90,13 @@ void VG_(demangle) ( Char* orig, Char* result, Int result_size )
// does leak. But, we can't do much about it, and it's not a disaster,
// so we just let it slide without aborting or telling the user.
// Finally, to reduce the endless nuisance of multiple different names
// for "the frame below main()" screwing up the testsuite, change all
// known incarnations of said into a single name, "(below main)".
if (0==VG_(strcmp)("__libc_start_main", result)
|| 0==VG_(strcmp)("generic_start_main", result))
VG_(strncpy_safely)(result, "(below main)", 13);
# undef N_ZBUF
}

View File

@ -1,13 +1,13 @@
Jump to the invalid address stated on the next line
at 0x........: ???
by 0x........: __libc_start_main (in /...libc...)
by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Process terminating with default action of signal 11 (SIGSEGV)
Access not within mapped region at address 0x........
at 0x........: ???
by 0x........: __libc_start_main (in /...libc...)
by 0x........: (below main) (in /...libc...)
ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: 0 bytes in 0 blocks.

View File

@ -1,5 +1,5 @@
Jump to the invalid address stated on the next line
at 0x........: ???
by 0x........: __libc_start_main (in /...libc...)
by 0x........: (below main) (in /...libc...)
Address 0x........ is not stack'd, malloc'd or (recently) free'd
Signal caught, as expected