* top.c (execute_control_command): Use 0/1 instead of BFD's
authorStan Shebs <shebs@codesourcery.com>
Sat, 7 Oct 1995 00:27:31 +0000 (00:27 +0000)
committerStan Shebs <shebs@codesourcery.com>
Sat, 7 Oct 1995 00:27:31 +0000 (00:27 +0000)
true/false.

gdb/ChangeLog
gdb/top.c

index 20797a1a5146d1a08451936f4eabb00ed64cc5d4..7f3fb982287a41410003dd8d39e7810322cdacee 100644 (file)
@@ -1,13 +1,18 @@
+Fri Oct  6 17:08:49 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * top.c (execute_control_command): Use 0/1 instead of BFD's
+       true/false.
+
 Fri Oct  6 14:43:19 1995  Stu Grossman  (grossman@cygnus.com)
 
-       * sparcl-stub.c:  include sparclite.h to get access to register
+       * sparcl-stub.c:  Include sparclite.h to get access to register
        fondling macros.
        * (trap_low):  Save and restore FP regs if necessary.  Also, clean
        up save and restore of debug unit regs.
        * (hard_trap_info):  Add more architecturally defined traps.
        * (set_debug_traps):  Only set FP disabled trap if FP is disabled.
        * (get_in_break_mode):  Clean up.  Get rid of calls to
-       set_hw_breakpoint_trap().  Also, use write_asi macro
+       set_hw_breakpoint_trap().  Also, use write_asi macro.
        * (handle_exception):  Clean up `g' and `G' commands.  Add `P'
        command.
        * (hw_breakpoint):  Why was this here!?  It's gone now...
@@ -15,12 +20,12 @@ Fri Oct  6 14:43:19 1995  Stu Grossman  (grossman@cygnus.com)
 Fri Oct  6 11:56:49 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
 
        * callback.c (fdbad): Fix typo in comment.
-       (os_close, os_isatty, os_lseek, os_read, os_write): Use if statements
-       rather than || to get correct return value.
+       (os_close, os_isatty, os_lseek, os_read, os_write): Use if
+       statements rather than || to get correct return value.
        (os_write_stdout): Pass missing first argument to os_write.
        * remote-sim.c: Include callback.h.
-       (_initialize_remote_sim): Call sim_set_callbacks and then initialize
-       the callbacks.
+       (_initialize_remote_sim): Call sim_set_callbacks and then
+       initialize the callbacks.
 
 Thu Oct  5 17:28:09 1995  Per Bothner  <bothner@kalessin.cygnus.com>
 
@@ -29,19 +34,22 @@ Thu Oct  5 17:28:09 1995  Per Bothner  <bothner@kalessin.cygnus.com>
        * value.h (struct value):  Remove fields repetitions and repeated.
        (VALUE_REPEATED, VALUE_REPETITIONS):  Removed, no longer used.
        * c-valprint.c, ch-valprint.c, eval.c, printcmd.c, valops.c,
-       value.h, values.c:  Simplify, since now VALUE_REPEATED is never used.
-       * valprint.c (value_print_array_elemen):  Removed never-used function.
+       value.h, values.c: Simplify, since now VALUE_REPEATED is never
+       used.
+       * valprint.c (value_print_array_elemen): Removed never-used
+       function.
        
 Thu Oct  5 15:14:36 1995  Per Bothner  <bothner@kalessin.cygnus.com>
 
        * parse.c (write_dollar_variable):  New function.
-       * c-exp.y (yylex):  Replace code for recognizing '$' pseudo-variables
-       with a call to write_dollar_variable.
+
+       * c-exp.y (yylex): Replace code for recognizing '$'
+       pseudo-variables with a call to write_dollar_variable.
        Simplify grammar correspondingly.
        * f-exp.y:  Likewise.
        * m2-exp.y:  Likewise.
        * ch-exp.y:  Likewise.  (Remove function match_dollar_tokens.)
-       * scm-exp.c (scm_lreadr):  Call write_dollar_variable to handle '$'.
+       * scm-exp.c (scm_lreadr): Call write_dollar_variable to handle '$'.
 
 Thu Oct  5 13:27:30 1995  steve chamberlain  <sac@slash.cygnus.com>
 
@@ -82,7 +90,7 @@ Wed Oct  4 17:23:03 1995  Per Bothner  <bothner@kalessin.cygnus.com>
 Tue Oct  3 16:54:56 1995  Stan Shebs  <shebs@andros.cygnus.com>
 
        * remote-nrom.c (nrom_ops): Add value for to_thread_alive,
-       add comment naming slots.
+       add comments naming slots.
 
 Mon Oct  2 21:45:44 1995  Jeff Law  (law@hurl)
 
index 1d6b0c51a45a79b4018560931d94af46c7f726a5..612c2a15247618701e042f9ef1fd5db1f4420506 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -818,10 +818,10 @@ execute_control_command (cmd)
        make_cleanup (free_current_contents, &expr);
        
        ret = simple_control;
-       loop = true;
+       loop = 1;
 
        /* Keep iterating so long as the expression is true.  */
-       while (loop == true)
+       while (loop == 1)
          {
            /* Evaluate the expression.  */
            val = evaluate_expression (expr);
@@ -840,7 +840,7 @@ execute_control_command (cmd)
                   looping.  */
                if (ret == invalid_control || ret == break_control)
                  {
-                   loop = false;
+                   loop = 0;
                    break;
                  }