gdb/remote: Use true/false instead of 1/0
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 7 Jun 2021 09:18:47 +0000 (10:18 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 28 Jun 2021 15:31:30 +0000 (16:31 +0100)
The remote_state::starting_up member variable is already of type bool,
but in some places we still write to it using 1 and 0.  This commit
just updates things to use true and false.

There should be no user visible change after this commit.

gdb/ChangeLog:

* remote.c (remote_target::start_remote): Set 'starting_up' using
boolean values instead of integers.

gdb/ChangeLog
gdb/remote.c

index 14d4a9ec226f9d7e96cb962eaed7fabf78a3af08..5ba05036ec29a50b13dc4b958e084fcb80c98a2e 100644 (file)
@@ -1,3 +1,8 @@
+2021-06-28  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * remote.c (remote_target::start_remote): Set 'starting_up' using
+       boolean values instead of integers.
+
 2021-06-25  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * guile/scm-param.c (struct param_smob) <set_command,
index 22933eeaeec616291112da84b3425eb48e872574..adc53e324d012066d95645c09606bb6c93d0254f 100644 (file)
@@ -4667,7 +4667,7 @@ remote_target::start_remote (int from_tty, int extended_p)
      Ctrl-C before we're connected and synced up can't interrupt the
      target.  Instead, it offers to drop the (potentially wedged)
      connection.  */
-  rs->starting_up = 1;
+  rs->starting_up = true;
 
   QUIT;
 
@@ -4808,7 +4808,7 @@ remote_target::start_remote (int from_tty, int extended_p)
 
          /* We're connected, but not running.  Drop out before we
             call start_remote.  */
-         rs->starting_up = 0;
+         rs->starting_up = false;
          return;
        }
       else
@@ -4923,7 +4923,7 @@ remote_target::start_remote (int from_tty, int extended_p)
 
          /* We're connected, but not running.  Drop out before we
             call start_remote.  */
-         rs->starting_up = 0;
+         rs->starting_up = false;
          return;
        }
 
@@ -4968,7 +4968,7 @@ remote_target::start_remote (int from_tty, int extended_p)
      target, our symbols have been relocated, and we're merged the
      target's tracepoints with ours.  We're done with basic start
      up.  */
-  rs->starting_up = 0;
+  rs->starting_up = false;
 
   /* Maybe breakpoints are global and need to be inserted now.  */
   if (breakpoints_should_be_inserted_now ())
This page took 0.031489 seconds and 4 git commands to generate.