]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Check the obvious ..
authorJulian Seward <jseward@acm.org>
Fri, 8 Jul 2005 18:23:40 +0000 (18:23 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 8 Jul 2005 18:23:40 +0000 (18:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4133

coregrind/m_threadstate.c

index 6c426bdc2c92a389c5eed17485068a5a9099ef64..c5e0c8606d751dfc85028758f7591d0cfc423e71 100644 (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];
 }