mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
* main.c (enable_external_editor): Don't declare.
(captured_main): Don't set enable_external_editor.
This commit is contained in:
@ -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>
|
2001-10-02 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
|
* Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
|
||||||
|
18
gdb/main.c
18
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
|
/* These two are used to set the external editor commands when gdb is farming
|
||||||
out files to be edited by another program. */
|
out files to be edited by another program. */
|
||||||
|
|
||||||
extern int enable_external_editor;
|
|
||||||
extern char *external_editor_command;
|
extern char *external_editor_command;
|
||||||
|
|
||||||
/* Call command_loop. If it happens to return, pass that through as a
|
/* Call command_loop. If it happens to return, pass that through as a
|
||||||
@ -341,23 +340,10 @@ extern int gdbtk_test (char *);
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'y':
|
case 'y':
|
||||||
{
|
/* Backwards compatibility only. */
|
||||||
/*
|
break;
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
case 'w':
|
case 'w':
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* if editor command is enabled, both flags are set
|
|
||||||
*/
|
|
||||||
enable_external_editor = 1;
|
|
||||||
external_editor_command = xstrdup (optarg);
|
external_editor_command = xstrdup (optarg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user