xref: /dflybsd-src/contrib/gdb-7/gdb/gdb.c (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Main function for CLI gdb.
2*ef5ccd6cSJohn Marino    Copyright (C) 2002-2013 Free Software Foundation, Inc.
35796c8dcSSimon Schubert 
45796c8dcSSimon Schubert    This file is part of GDB.
55796c8dcSSimon Schubert 
65796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
75796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
85796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
95796c8dcSSimon Schubert    (at your option) any later version.
105796c8dcSSimon Schubert 
115796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
125796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
135796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
145796c8dcSSimon Schubert    GNU General Public License for more details.
155796c8dcSSimon Schubert 
165796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
175796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
185796c8dcSSimon Schubert 
195796c8dcSSimon Schubert #include "defs.h"
205796c8dcSSimon Schubert #include "main.h"
215796c8dcSSimon Schubert #include "gdb_string.h"
225796c8dcSSimon Schubert #include "interps.h"
235796c8dcSSimon Schubert 
245796c8dcSSimon Schubert int
main(int argc,char ** argv)255796c8dcSSimon Schubert main (int argc, char **argv)
265796c8dcSSimon Schubert {
275796c8dcSSimon Schubert   struct captured_main_args args;
28cf7f2e2dSJohn Marino 
295796c8dcSSimon Schubert   memset (&args, 0, sizeof args);
305796c8dcSSimon Schubert   args.argc = argc;
315796c8dcSSimon Schubert   args.argv = argv;
325796c8dcSSimon Schubert   args.use_windows = 0;
335796c8dcSSimon Schubert   args.interpreter_p = INTERP_CONSOLE;
345796c8dcSSimon Schubert   return gdb_main (&args);
355796c8dcSSimon Schubert }
36