aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-10-04 15:04:27 +0000
committerTom Tromey <tromey@redhat.com>2001-10-04 15:04:27 +0000
commit78f495860c35139a74ec07d8db3f159630e6d17f (patch)
tree684755752cf73a8b349d957bbbe3660791c7d28c /gdb
parenta90b9fca6fba5bc11b0480372e35368b8ff5eb77 (diff)
downloadgdb-78f495860c35139a74ec07d8db3f159630e6d17f.zip
gdb-78f495860c35139a74ec07d8db3f159630e6d17f.tar.gz
gdb-78f495860c35139a74ec07d8db3f159630e6d17f.tar.bz2
* main.c (enable_external_editor): Don't declare.
(captured_main): Don't set enable_external_editor.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/main.c18
2 files changed, 7 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7c92611..9203a32 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-04 Tom Tromey <tromey@redhat.com>
+
+ * main.c (enable_external_editor): Don't declare.
+ (captured_main): Don't set enable_external_editor.
+
2001-10-02 Kevin Buettner <kevinb@redhat.com>
* Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
diff --git a/gdb/main.c b/gdb/main.c
index 57cf136..2e69d80 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -81,7 +81,6 @@ static void print_gdb_help (struct ui_file *);
/* These two are used to set the external editor commands when gdb is farming
out files to be edited by another program. */
-extern int enable_external_editor;
extern char *external_editor_command;
/* Call command_loop. If it happens to return, pass that through as a
@@ -341,23 +340,10 @@ extern int gdbtk_test (char *);
break;
}
case 'y':
- {
- /*
- * This enables the edit/button in the main window, even
- * when IDE_ENABLED is set to false. In this case you must
- * use --tclcommand to specify a tcl/script to be called,
- * Tcl/Variable to store the edit/command is:
- * external_editor
- */
- enable_external_editor = 1;
- break;
- }
+ /* Backwards compatibility only. */
+ break;
case 'w':
{
- /*
- * if editor command is enabled, both flags are set
- */
- enable_external_editor = 1;
external_editor_command = xstrdup (optarg);
break;
}