Check the obvious ..

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4133
This commit is contained in:
Julian Seward 2005-07-08 18:23:40 +00:00
parent 1f69df95cc
commit 1ef4de1022

View File

@ -60,6 +60,7 @@ const HChar* VG_(name_of_ThreadStatus) ( ThreadStatus status )
ThreadState *VG_(get_ThreadState)(ThreadId tid)
{
vg_assert(tid >= 0 && tid < VG_N_THREADS);
vg_assert(VG_(threads)[tid].tid == tid);
return &VG_(threads)[tid];
}