From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id D7DF53870855; Sat, 9 May 2020 18:06:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7DF53870855 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Change server_command to bool X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 6dc55ce97db90a9e6f201d67ca05608e19287ba1 X-Git-Newrev: 2f78cffc1671188924ab3ec46a6a962894add49a Message-Id: <20200509180604.D7DF53870855@sourceware.org> Date: Sat, 9 May 2020 18:06:04 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2020 18:06:05 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2f78cffc1671188924ab3ec46a6a962894add49a commit 2f78cffc1671188924ab3ec46a6a962894add49a Author: Tom Tromey Date: Sat May 9 12:04:58 2020 -0600 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 * top.c (server_command): Now bool. * top.h (server_command): Now bool. Diff: --- gdb/ChangeLog | 5 +++++ gdb/top.c | 2 +- gdb/top.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07bc9505020..1abdf9f1db2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-05-09 Tom Tromey + + * top.c (server_command): Now bool. + * top.h (server_command): Now bool. + 2020-05-08 Tom Tromey * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE diff --git a/gdb/top.c b/gdb/top.c index 9fb9d5cb5c7..3589d6b6ce7 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -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. */ diff --git a/gdb/top.h b/gdb/top.h index 0cbb244c551..e98772a51e6 100644 --- a/gdb/top.h +++ b/gdb/top.h @@ -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 *);