embedded host: launch telnet server even if configuration fails
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 11 Jun 2009 13:03:32 +0000 (13:03 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 11 Jun 2009 13:03:32 +0000 (13:03 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2198 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/ecosboard.c

index 1c8091d2e7fa80a5e3e1f44b595b1e3ce304cd16..20907576c5c4030d71c9e29f880d52f8aee1213f 100644 (file)
@@ -1046,6 +1046,9 @@ int main(int argc, char *argv[])
 
        command_run_linef(cmd_ctx, "script /rom/openocd.cfg");
 
+       /* we MUST always run the init command as it will launch telnet sessions */
+       command_run_line(cmd_ctx, "init");
+
        // FIX!!!  Yuk!
        // diag_printf() is really invoked from many more places than we trust it
        // not to cause instabilities(e.g. invoking fputc() from an interrupt is *BAD*).