On Thu, 2009-12-10 at 13:18 +0000, Spencer Oliver wrote: > Spencer Oliver wrote: > > Zachary T Welch wrote: > >> Hi all, > >> > >> These patches clean up the server and system startup. The first patch > >> factors the GDB server setup to be more conducive to deferred > >> initialization of targets (in a later series). > >> > >> The second provides the 'noinit' command which can be used in a script > >> to removing 'init' from the end of the startup sequence. Scripts > >> that do not add this command will continue to see the same behavior, but > >> this allows new scripts to defer initialization to be done through the > >> TCL server or by hand over telnet. > >> > >> The later use case is particular useful in order to interactively learn > >> the command set with help. The final patch takes advantage of this and > >> hides those commands which cannot be used in the current command mode. > >> > > > > Hi, > > > > Just done a quick test on native win32 and this breaks the server. > > As win32 requires that WSAStartup is called before any socket operations. > > > > The failure is in gdb_target_start that is called before server_init. > > I can look into a fix, but struggle to keep up with all the code changes. > > > > Attached is a patch for review. > > I have added a server_preinit function that calls WSAStartup before any > config file parsing etc. > > No objections i will commit.
Looks good to me. --Z _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development