xref: /dragonfly/contrib/gdb-7/gdb/main.h (revision ef5ccd6c)
15796c8dcSSimon Schubert /* Main interface for GDB, the GNU debugger.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 2002-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    This file is part of GDB.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
85796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
95796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
105796c8dcSSimon Schubert    (at your option) any later version.
115796c8dcSSimon Schubert 
125796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
135796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
145796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155796c8dcSSimon Schubert    GNU General Public License for more details.
165796c8dcSSimon Schubert 
175796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
185796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
195796c8dcSSimon Schubert 
205796c8dcSSimon Schubert #ifndef MAIN_H
215796c8dcSSimon Schubert #define MAIN_H
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert struct captured_main_args
245796c8dcSSimon Schubert {
255796c8dcSSimon Schubert   int argc;
265796c8dcSSimon Schubert   char **argv;
275796c8dcSSimon Schubert   int use_windows;
285796c8dcSSimon Schubert   const char *interpreter_p;
295796c8dcSSimon Schubert };
305796c8dcSSimon Schubert 
315796c8dcSSimon Schubert extern int gdb_main (struct captured_main_args *);
325796c8dcSSimon Schubert 
335796c8dcSSimon Schubert /* From main.c.  */
345796c8dcSSimon Schubert extern int return_child_result;
355796c8dcSSimon Schubert extern int return_child_result_value;
365796c8dcSSimon Schubert extern int batch_silent;
37cf7f2e2dSJohn Marino extern int batch_flag;
385796c8dcSSimon Schubert 
39*ef5ccd6cSJohn Marino /* From mingw-hdep.c, used by main.c.  */
40*ef5ccd6cSJohn Marino 
41*ef5ccd6cSJohn Marino /* Return argv[0] in absolute form, if possible, or ARGV0 if not.  The
42*ef5ccd6cSJohn Marino    return value is in malloc'ed storage.  */
43*ef5ccd6cSJohn Marino extern char *windows_get_absolute_argv0 (const char *argv0);
44*ef5ccd6cSJohn Marino 
455796c8dcSSimon Schubert #endif
46