mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 04:53:56 +08:00
Remove in_user_command
While working on the next patch in this series, I found that the global in_user_command is not used. This patch removes it. (I didn't think to check Insight until submitting this series; and it's not very convenient to do so, so if someone has it checked out and could look at it, that would be nice.) ChangeLog 2017-08-03 Tom Tromey <tom@tromey.com> * top.h (in_user_command): Remove. * top.c (in_user_command): Remove. * cli/cli-script.c (do_restore_user_call_depth) (execute_user_command): Update.
This commit is contained in:
parent
26fcd5d757
commit
898e0c8e87
@ -1,3 +1,10 @@
|
||||
2017-08-03 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* top.h (in_user_command): Remove.
|
||||
* top.c (in_user_command): Remove.
|
||||
* cli/cli-script.c (do_restore_user_call_depth)
|
||||
(execute_user_command): Update.
|
||||
|
||||
2017-08-03 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* valops.c (search_struct_method): Use gdb::byte_vector.
|
||||
|
@ -379,8 +379,6 @@ do_restore_user_call_depth (void * call_depth)
|
||||
int *depth = (int *) call_depth;
|
||||
|
||||
(*depth)--;
|
||||
if ((*depth) == 0)
|
||||
in_user_command = 0;
|
||||
}
|
||||
|
||||
|
||||
@ -411,10 +409,6 @@ execute_user_command (struct cmd_list_element *c, char *args)
|
||||
make_cleanup (do_restore_instream_cleanup, ui->instream);
|
||||
ui->instream = NULL;
|
||||
|
||||
/* Also set the global in_user_command, so that NULL instream is
|
||||
not confused with Insight. */
|
||||
in_user_command = 1;
|
||||
|
||||
scoped_restore save_async = make_scoped_restore (¤t_ui->async, 0);
|
||||
|
||||
command_nest_depth++;
|
||||
|
@ -129,10 +129,6 @@ show_confirm (struct ui_file *file, int from_tty,
|
||||
value);
|
||||
}
|
||||
|
||||
/* Flag to indicate whether a user defined command is currently running. */
|
||||
|
||||
int in_user_command;
|
||||
|
||||
/* Current working directory. */
|
||||
|
||||
char *current_directory;
|
||||
|
Loading…
Reference in New Issue
Block a user