target/riscv: Update debug_defines.h.
[openocd.git] / src / main.c
blob3bc859a0bfc6833c3607d725381731c35b5ceae6
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 ***************************************************************************/
8 #ifdef HAVE_CONFIG_H
9 #include "config.h"
10 #endif
11 #include "openocd.h"
12 #include "helper/system.h"
14 /* This is the main entry for developer PC hosted OpenOCD.
16 * OpenOCD can also be used as a library that is linked with
17 * another application(not mainstream yet, but possible), e.g.
18 * w/as an embedded application.
20 * Those applications will have their own main() implementation
21 * and use bits and pieces from openocd.c. */
23 int main(int argc, char *argv[])
25 /* disable buffering otherwise piping to logs causes problems work */
26 setvbuf(stdout, NULL, _IONBF, 0);
27 setvbuf(stderr, NULL, _IONBF, 0);
29 return openocd_main(argc, argv);