Final commit for the initial modularisation pass:

- Broke part of m_scheduler off into a new module m_threadstate.  It
  contains ThreadState, VG_(threads)[] and some basic operations on the
  thread table.  All simple stuff, the complex stuff stays in m_scheduler.
  This avoids lots of circular dependencies between m_scheduler and other
  modules.

- Managed to finally remove core.h and tool.h, double hurrah!

- Introduced pub_tool_basics.h and pub_core_basics.h, one of which is
  include by every single C file.

- Lots of little cleanups and changes related to the above.

- I even did a small amount of documentation updating.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3944 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/Makefile.am b/coregrind/Makefile.am
index a0f87e3..fce5f56 100644
--- a/coregrind/Makefile.am
+++ b/coregrind/Makefile.am
@@ -31,9 +31,9 @@
 	vg_preload_core.so
 
 noinst_HEADERS = \
-	core.h			\
 	coregrind.h		\
 	pub_core_aspacemgr.h	\
+	pub_core_basics.h	\
 	pub_core_cpuid.h	\
 	pub_core_debuginfo.h	\
 	pub_core_debuglog.h	\
@@ -65,6 +65,7 @@
 	pub_core_stacktrace.h	\
 	pub_core_syswrap.h	\
 	pub_core_threadmodel.h	\
+	pub_core_threadstate.h	\
 	pub_core_tooliface.h	\
 	pub_core_trampoline.h	\
 	pub_core_translate.h	\
@@ -117,6 +118,7 @@
 	m_stacktrace.c \
 	m_syscall.c \
 	m_threadmodel.c \
+	m_threadstate.c \
 	m_tooliface.c \
 	m_trampoline.S \
 	m_translate.c \