108821bd2Schristos /* Main function for TUI gdb.
208821bd2Schristos
308821bd2Schristos Copyright (C) 2002, 2004, 2007, 2008, 2009, 2010, 2011
408821bd2Schristos Free Software Foundation, Inc.
508821bd2Schristos
608821bd2Schristos This file is part of GDB.
708821bd2Schristos
808821bd2Schristos This program is free software; you can redistribute it and/or modify
908821bd2Schristos it under the terms of the GNU General Public License as published by
1008821bd2Schristos the Free Software Foundation; either version 3 of the License, or
1108821bd2Schristos (at your option) any later version.
1208821bd2Schristos
1308821bd2Schristos This program is distributed in the hope that it will be useful,
1408821bd2Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of
1508821bd2Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1608821bd2Schristos GNU General Public License for more details.
1708821bd2Schristos
1808821bd2Schristos You should have received a copy of the GNU General Public License
1908821bd2Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */
2008821bd2Schristos
2108821bd2Schristos #include "defs.h"
2208821bd2Schristos #include "main.h"
2308821bd2Schristos #include "interps.h"
24*78ce218aSchristos #include <string.h>
2508821bd2Schristos
2608821bd2Schristos int
main(int argc,char ** argv)2708821bd2Schristos main (int argc, char **argv)
2808821bd2Schristos {
2908821bd2Schristos struct captured_main_args args;
3008821bd2Schristos
3108821bd2Schristos memset (&args, 0, sizeof args);
3208821bd2Schristos args.argc = argc;
3308821bd2Schristos args.argv = argv;
3408821bd2Schristos args.interpreter_p = INTERP_TUI;
3508821bd2Schristos return gdb_main (&args);
3608821bd2Schristos }
37