From: Julian Seward Date: Fri, 8 Jul 2005 18:23:40 +0000 (+0000) Subject: Check the obvious .. X-Git-Tag: svn/VALGRIND_3_0_0~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ef4de10226065eeb743525cd02c490c84d1ea37;p=thirdparty%2Fvalgrind.git Check the obvious .. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4133 --- diff --git a/coregrind/m_threadstate.c b/coregrind/m_threadstate.c index 6c426bdc2c..c5e0c8606d 100644 --- a/coregrind/m_threadstate.c +++ b/coregrind/m_threadstate.c @@ -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]; }