Moved VG_(first_matching_thread_stack), removing m_threadstate's dependency
on m_machine.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3983 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/pub_tool_machine.h b/include/pub_tool_machine.h
index 46ff9d6..a707b5f 100644
--- a/include/pub_tool_machine.h
+++ b/include/pub_tool_machine.h
@@ -74,6 +74,12 @@
// doing leak checking.
extern void VG_(apply_to_GP_regs)(void (*f)(UWord val));
+// Searches through all thread stacks to see if any match. Returns
+// VG_INVALID_THREADID if none match.
+extern ThreadId VG_(first_matching_thread_stack)
+ ( Bool (*p) ( Addr stack_min, Addr stack_max, void* d ),
+ void* d );
+
#endif // __PUB_TOOL_MACHINE_H
/*--------------------------------------------------------------------*/