- Enhanced internal variables framework (including read/save to
  registry and typing)
- Finalized use of Windows' Console I/O interface (instead of Unix std
  streams)
- Now handling registers as internal variables (they are no longer
  seen as a specific type)

diff --git a/debugger/hash.c b/debugger/hash.c
index 0544d65..2d921aa 100644
--- a/debugger/hash.c
+++ b/debugger/hash.c
@@ -1138,6 +1138,7 @@
 	      /*
 	       * Register variable.  Point to DEBUG_context field.
 	       */
+	      assert(curr_func->local_vars[i].regno - 1 < sizeof(reg_ofs)/sizeof(reg_ofs[0]));
 	      value->addr.off = ((DWORD)&DEBUG_context) + 
 		 reg_ofs[curr_func->local_vars[i].regno - 1];
 	      value->cookie = DV_HOST;