From: Nicholas Nethercote Date: Sun, 8 May 2005 02:13:47 +0000 (+0000) Subject: Remove dead function VG_(exit_single)(). X-Git-Tag: svn/VALGRIND_3_0_0~685 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c13f8c5c0343fee33627f95fd89bd80cc56451;p=thirdparty%2Fvalgrind.git Remove dead function VG_(exit_single)(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3633 --- diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c index 57ff811030..ca16b866a9 100644 --- a/coregrind/vg_mylibc.c +++ b/coregrind/vg_mylibc.c @@ -358,16 +358,6 @@ Int VG_(mprotect_native)( void *start, SizeT length, UInt prot ) return VG_(is_kerror)(res) ? -1 : 0; } -/* Terminate this single thread */ -void VG_(exit_single)( Int status ) -{ - (void)VG_(do_syscall1)(__NR_exit, status ); - /* Why are we still alive here? */ - /*NOTREACHED*/ - *(volatile Int *)0 = 'x'; - vg_assert(2+2 == 5); -} - /* Pull down the entire world */ void VG_(exit)( Int status ) { diff --git a/include/tool.h.base b/include/tool.h.base index 7d4b168d7f..e899808880 100644 --- a/include/tool.h.base +++ b/include/tool.h.base @@ -333,10 +333,6 @@ extern void* VG_(realloc) ( void* p, SizeT size ); extern void VG_(exit)( Int status ) __attribute__ ((__noreturn__)); -/* terminate the calling thread - probably not what you want */ -extern void VG_(exit_single)( Int status ) - __attribute__ ((__noreturn__)); - /* Prints a panic message (a constant string), appends newline and bug reporting info, aborts. */ __attribute__ ((__noreturn__))