1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 ***************************************************************************/
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
);