Change server_command to bool

I noticed that "server_command" is an int, but really it should be a
bool.

gdb/ChangeLog
2020-05-09  Tom Tromey  <tom@tromey.com>

	* top.c (server_command): Now bool.
	* top.h (server_command): Now bool.
This commit is contained in:
Tom Tromey 2020-05-09 12:04:58 -06:00
parent 6dc55ce97d
commit 2f78cffc16
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2020-05-09 Tom Tromey <tom@tromey.com>
* top.c (server_command): Now bool.
* top.h (server_command): Now bool.
2020-05-08 Tom Tromey <tromey@adacore.com>
* dwarf2/read.c (read_lexical_block_scope): Don't process a DIE

View File

@ -174,7 +174,7 @@ static const char *previous_repeat_arguments;
whatever) can issue its own commands and also send along commands
from the user, and have the user not notice that the user interface
is issuing commands too. */
int server_command;
bool server_command;
/* Timeout limit for response from target. */

View File

@ -281,7 +281,7 @@ extern void gdb_init (char *);
extern int source_line_number;
extern std::string source_file_name;
extern bool history_expansion_p;
extern int server_command;
extern bool server_command;
extern char *lim_at_start;
extern void gdb_add_history (const char *);