GDB (API)
|
00001 /* Main interface for GDB, the GNU debugger. 00002 00003 Copyright (C) 2002-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #ifndef MAIN_H 00021 #define MAIN_H 00022 00023 struct captured_main_args 00024 { 00025 int argc; 00026 char **argv; 00027 int use_windows; 00028 const char *interpreter_p; 00029 }; 00030 00031 extern int gdb_main (struct captured_main_args *); 00032 00033 /* From main.c. */ 00034 extern int return_child_result; 00035 extern int return_child_result_value; 00036 extern int batch_silent; 00037 extern int batch_flag; 00038 00039 /* From mingw-hdep.c, used by main.c. */ 00040 00041 /* Return argv[0] in absolute form, if possible, or ARGV0 if not. The 00042 return value is in malloc'ed storage. */ 00043 extern char *windows_get_absolute_argv0 (const char *argv0); 00044 00045 /* Return read only pointer to the name of gdb as it was invoked. This 00046 might have been expanded to an absolute path if required by the 00047 platform. Could return NULL if called before gdb has had a chance to 00048 parse the argv array. */ 00049 extern const char *get_gdb_program_name (void); 00050 00051 #endif