1214082Sdim/* Main function for TUI gdb.
2214082Sdim
3214082Sdim   Copyright 2002, 2004 Free Software Foundation, Inc.
4214082Sdim
5214082Sdim   This file is part of GDB.
6214082Sdim
7214082Sdim   This program is free software; you can redistribute it and/or modify
8214082Sdim   it under the terms of the GNU General Public License as published by
9214082Sdim   the Free Software Foundation; either version 2 of the License, or
10214082Sdim   (at your option) any later version.
11214082Sdim
12214082Sdim   This program is distributed in the hope that it will be useful,
13214082Sdim   but WITHOUT ANY WARRANTY; without even the implied warranty of
14214082Sdim   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15214082Sdim   GNU General Public License for more details.
16214082Sdim
17214082Sdim   You should have received a copy of the GNU General Public License
18214082Sdim   along with this program; if not, write to the Free Software
19214082Sdim   Foundation, Inc., 59 Temple Place - Suite 330,
20214082Sdim   Boston, MA 02111-1307, USA.  */
21214082Sdim
22214082Sdim#include "defs.h"
23214082Sdim#include "main.h"
24214082Sdim#include "gdb_string.h"
25214082Sdim#include "interps.h"
26214082Sdim
27214082Sdimint
28214082Sdimmain (int argc, char **argv)
29214082Sdim{
30214082Sdim  struct captured_main_args args;
31214082Sdim  memset (&args, 0, sizeof args);
32214082Sdim  args.argc = argc;
33214082Sdim  args.argv = argv;
34214082Sdim  args.use_windows = 0;
35214082Sdim  args.interpreter_p = INTERP_TUI;
36214082Sdim  return gdb_main (&args);
37214082Sdim}
38214082Sdim