Backport d2ed08f: Add include for fd_set

According to POSIX, fd_set is defined in sys/select.h.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html

2010-03-21  Andreas Faerber  <andreas.faerber@web.de>

	* debugger-agent.c: #include sys/select.h for fd_set.

This commit is licensed under the MIT X11 license.
2010-03-26  Zoltan Varga  <vargaz@gmail.com>

	* debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
	thread_to_tls hash table.

svn path=/trunk/mono/; revision=154313
Check the debugger_thread_exited condition in a loop to guard against spurious wakeups. Fixes #642780.
Disable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes #632224.
Fix a typo in process_breakpoint_inner which doesn't break our tests for some reason.
Implement GHashTable iterators.
When single stepping from a exception throw site, single step to the catch site. Fixes #652590.
Send back an error instead of asserting when a breakpoint cannot be set at an il offset because it has no seq point. Fixes #620099.
Fix an assert in single stepping if an IL offset doesn't correspond to a seq point. Fixes #654694.
Add a TID field to ThreadMirror which returns the system thread id.
Dynamic methods are classes already here
Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows.
[Cleanup] Remove windows-specific shutdown hackaround.

 * debugger-agent.c: Remove windows-specific shutdown hackaround.

License: MIT/X11
Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586.
Set SO_REUSEADDR on listening sockets
Add socket timeouts to the soft debugger.

SDB now support setting a send/receive timeout on the client's side
of the communication socket.  To make this work, the server sends
a special 'keepalive' event when using receive timeouts.

There's a new method VirtualMachine.SetSocketTimeouts() to enable
this feature.

Conflicts:
	mono/mini/debugger-agent.c
Clear unloaded types on appdomain unload.

svn path=/branches/mono-2-6/mono/; revision=158733

Conflicts:
	mono/mini/ChangeLog
	mono/mini/debugger-agent.c
[Debugger] Track loaded classes on a per-domain basis.

 * debugger-agent.c: Move loaded-classes to AgentDomainInfo

License: MIT/X11
[SDB] Fixup connection-time messages on attaching.

 * mini/debugger-agent.c: Fixup connection-time messages on attaching.

License: MIT/X11
Don't suspend on thread end, the tls value is already null'd