From 1ef4de10226065eeb743525cd02c490c84d1ea37 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 8 Jul 2005 18:23:40 +0000 Subject: [PATCH] Check the obvious .. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4133 --- coregrind/m_threadstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coregrind/m_threadstate.c b/coregrind/m_threadstate.c index 6c426bdc2..c5e0c8606 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]; }