stlink: add comment of firmware version for each flag bit
[fw/openocd] / src / openocd.c
index 4fec563383a3c581a66e2b8b97e6e9ecd4287410..32b68b6fc2cabfcf90e6abac29d90afa708d0098 100644 (file)
@@ -30,7 +30,6 @@
 #include <jtag/driver.h>
 #include <jtag/jtag.h>
 #include <transport/transport.h>
-#include <helper/ioutil.h>
 #include <helper/util.h>
 #include <helper/configuration.h>
 #include <flash/nor/core.h>
@@ -341,9 +340,6 @@ int openocd_main(int argc, char *argv[])
        if (util_init(cmd_ctx) != ERROR_OK)
                return EXIT_FAILURE;
 
-       if (ioutil_init(cmd_ctx) != ERROR_OK)
-               return EXIT_FAILURE;
-
        if (rtt_init() != ERROR_OK)
                return EXIT_FAILURE;
 
@@ -365,6 +361,7 @@ int openocd_main(int argc, char *argv[])
        server_free();
 
        unregister_all_commands(cmd_ctx, NULL);
+       help_del_all_commands(cmd_ctx);
 
        /* free all DAP and CTI objects */
        dap_cleanup_all();