mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Avoid recursion in VG_(exit).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10285
This commit is contained in:
parent
a01f086879
commit
17ae73a356
@ -107,7 +107,10 @@ void VG_(exit)( Int status )
|
||||
# error Unknown OS
|
||||
#endif
|
||||
/*NOTREACHED*/
|
||||
VG_(core_panic)("VG_(exit) didn't work?");
|
||||
// We really shouldn't reach here. Just in case we do, use some very crude
|
||||
// methods to force abort
|
||||
__builtin_trap();
|
||||
*(volatile Int*)0 = 'x';
|
||||
}
|
||||
|
||||
// Print the scheduler status.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user