From 7e3cabf197cffb6451316551f65eef8b93f05a48 Mon Sep 17 00:00:00 2001 From: Lars Rademacher Date: Mon, 21 Oct 2013 01:21:41 +0200 Subject: [PATCH] openocd: disabled main As the openocd-executable won't be needed, the main-function just prints a warning, which should never be seen in fail context. Change-Id: I8e5bbd00f152f68058f946b68201c0917db9ec9a --- debuggers/openocd/src/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/debuggers/openocd/src/main.c b/debuggers/openocd/src/main.c index 2585c663..5cf8e9d4 100644 --- a/debuggers/openocd/src/main.c +++ b/debuggers/openocd/src/main.c @@ -23,6 +23,8 @@ #endif #include "openocd.h" +#include + /* This is the main entry for developer PC hosted OpenOCD. * * OpenOCD can also be used as a library that is linked with @@ -35,8 +37,10 @@ int main(int argc, char *argv[]) { /* disable buffering otherwise piping to logs causes problems work */ - setvbuf(stdout, NULL, _IONBF, 0); - setvbuf(stderr, NULL, _IONBF, 0); - - return openocd_main(argc, argv); +// setvbuf(stdout, NULL, _IONBF, 0); +// setvbuf(stderr, NULL, _IONBF, 0); +// +// return openocd_main(argc, argv); + printf("PANIC: This should not be happening\n"); + return 0; }