aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-09-26 17:46:04 +0000
committerAndrew Cagney <cagney@redhat.com>2002-09-26 17:46:04 +0000
commitf15ab4a7d1f9b4df5376f568a634c0408b074cee (patch)
tree20038e67b0cdd74d862172cee0ceb92057c9e517 /gdb/main.h
parent3396de367a522c2e10a68389b48fc9e944d7cc04 (diff)
downloadgdb-f15ab4a7d1f9b4df5376f568a634c0408b074cee.zip
gdb-f15ab4a7d1f9b4df5376f568a634c0408b074cee.tar.gz
gdb-f15ab4a7d1f9b4df5376f568a634c0408b074cee.tar.bz2
2002-09-26 Andrew Cagney <ac131313@redhat.com>
From Grace Sainsbury <graces@redhat.com>: * Makefile.in (gdbtk-main.o): New target. (gdb.o): New target. (main_h): Define. (main.o): Update dependencies. (gdb$(EXEEXT)): Add gdb.o. (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c. (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set. (SUBDIR_GDBTK_CLEAN): Set. (install-gdbtk): Install the insight binary. (uninstall-gdbtk): New target. (all-gdbtk, clean-gdbtk): New rule. * top.c (use_windows): Default to zero. * main.c: Include "main.h". (main): Delete. (struct captured_main_args): Delete. (gdb_main): New function. * main.h: New file. * gdb.c: New File. 2002-09-26 Andrew Cagney <ac131313@redhat.com> From Grace Sainsbury <graces@redhat.com>: * generic/gdbtk-main.c: New file.
Diffstat (limited to 'gdb/main.h')
-rw-r--r--gdb/main.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/main.h b/gdb/main.h
new file mode 100644
index 0000000..8ee189e
--- /dev/null
+++ b/gdb/main.h
@@ -0,0 +1,34 @@
+/* Main interface for GDB, the GNU debugger.
+
+ Copyright 2002 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef MAIN_H
+#define MAIN_H
+
+struct captured_main_args
+{
+ int argc;
+ char **argv;
+ int use_windows;
+};
+
+extern int gdb_main (struct captured_main_args *);
+
+#endif