Added VG_(thread_get_stack_size)().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7799 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/pub_tool_machine.h b/include/pub_tool_machine.h
index c8556b5..bb9a4cc 100644
--- a/include/pub_tool_machine.h
+++ b/include/pub_tool_machine.h
@@ -105,6 +105,9 @@
 // Returns .client_stack_highest_word for the given thread
 extern Addr VG_(thread_get_stack_max) ( ThreadId tid );
 
+// Returns how many bytes have been allocated for the stack of the given thread
+extern Addr VG_(thread_get_stack_size) ( ThreadId tid );
+
 // Given a pointer to a function as obtained by "& functionname" in C,
 // produce a pointer to the actual entry point for the function.  For
 // most platforms it's the identity function.  Unfortunately, on