xref: /dflybsd-src/contrib/gdb-7/gdb/gdb.c (revision 5796c8dc12c637f18a1740c26afd8d40ffa9b719)
1*5796c8dcSSimon Schubert /* Main function for CLI gdb.
2*5796c8dcSSimon Schubert    Copyright (C) 2002, 2007, 2008, 2009 Free Software Foundation, Inc.
3*5796c8dcSSimon Schubert 
4*5796c8dcSSimon Schubert    This file is part of GDB.
5*5796c8dcSSimon Schubert 
6*5796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
7*5796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
8*5796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
9*5796c8dcSSimon Schubert    (at your option) any later version.
10*5796c8dcSSimon Schubert 
11*5796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
12*5796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*5796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*5796c8dcSSimon Schubert    GNU General Public License for more details.
15*5796c8dcSSimon Schubert 
16*5796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
17*5796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18*5796c8dcSSimon Schubert 
19*5796c8dcSSimon Schubert #include "defs.h"
20*5796c8dcSSimon Schubert #include "main.h"
21*5796c8dcSSimon Schubert #include "gdb_string.h"
22*5796c8dcSSimon Schubert #include "interps.h"
23*5796c8dcSSimon Schubert 
24*5796c8dcSSimon Schubert int
25*5796c8dcSSimon Schubert main (int argc, char **argv)
26*5796c8dcSSimon Schubert {
27*5796c8dcSSimon Schubert   struct captured_main_args args;
28*5796c8dcSSimon Schubert   memset (&args, 0, sizeof args);
29*5796c8dcSSimon Schubert   args.argc = argc;
30*5796c8dcSSimon Schubert   args.argv = argv;
31*5796c8dcSSimon Schubert   args.use_windows = 0;
32*5796c8dcSSimon Schubert   args.interpreter_p = INTERP_CONSOLE;
33*5796c8dcSSimon Schubert   return gdb_main (&args);
34*5796c8dcSSimon Schubert }
35