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
This commit is contained in:
@ -23,6 +23,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "openocd.h"
|
#include "openocd.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
/* This is the main entry for developer PC hosted OpenOCD.
|
/* This is the main entry for developer PC hosted OpenOCD.
|
||||||
*
|
*
|
||||||
* OpenOCD can also be used as a library that is linked with
|
* OpenOCD can also be used as a library that is linked with
|
||||||
@ -35,8 +37,10 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
/* disable buffering otherwise piping to logs causes problems work */
|
/* disable buffering otherwise piping to logs causes problems work */
|
||||||
setvbuf(stdout, NULL, _IONBF, 0);
|
// setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
setvbuf(stderr, NULL, _IONBF, 0);
|
// setvbuf(stderr, NULL, _IONBF, 0);
|
||||||
|
//
|
||||||
return openocd_main(argc, argv);
|
// return openocd_main(argc, argv);
|
||||||
|
printf("PANIC: This should not be happening\n");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user