aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-28 15:11:36 -0700
committerTom Tromey <tromey@redhat.com>2014-01-13 14:25:48 -0700
commit78e5999d375b8ceae5b114b7cfed4b2c20779921 (patch)
tree784e11528001a93569f4e17c234e8dd680f77b45 /gdb/main.c
parentf2052bbe7a66ae99d72b48477289f1fea32bc982 (diff)
downloadgdb-78e5999d375b8ceae5b114b7cfed4b2c20779921.zip
gdb-78e5999d375b8ceae5b114b7cfed4b2c20779921.tar.gz
gdb-78e5999d375b8ceae5b114b7cfed4b2c20779921.tar.bz2
remove use_windows
Nothing actually uses use_windows, not even Insight. So, this patch removes it. 2014-01-13 Tom Tromey <tromey@redhat.com> * defs.h (use_windows): Remove. * gdb.c (main): Update. * main.c (captured_main, gdb_main): Update. * main.h (struct captured_main_args) <use_windows>: Remove. * top.c (use_windows): Remove.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 0c8349e..efb49f5d 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -588,19 +588,14 @@ captured_main (void *data)
xfree (interpreter_p);
interpreter_p = xstrdup (INTERP_INSIGHT);
#endif
- use_windows = 1;
break;
case OPT_NOWINDOWS:
/* -nw is equivalent to -i=console. */
xfree (interpreter_p);
interpreter_p = xstrdup (INTERP_CONSOLE);
- use_windows = 0;
break;
case 'f':
annotation_level = 1;
- /* We have probably been invoked from emacs. Disable
- window interface. */
- use_windows = 0;
break;
case 's':
symarg = optarg;
@@ -744,13 +739,6 @@ captured_main (void *data)
}
}
- /* If --help or --version or --configuration, disable window
- interface. */
- if (print_help || print_version || print_configuration)
- {
- use_windows = 0;
- }
-
if (batch_flag)
quiet = 1;
}
@@ -1072,7 +1060,6 @@ captured_main (void *data)
int
gdb_main (struct captured_main_args *args)
{
- use_windows = args->use_windows;
catch_errors (captured_main, args, "", RETURN_MASK_ALL);
/* The only way to end up here is by an error (normal exit is
handled by quit_force()), hence always return an error status. */