* top.c (read_next_line): Fix thinkos. From Don Seeley.
authorJeff Law <law@redhat.com>
Thu, 16 May 1996 04:49:12 +0000 (04:49 +0000)
committerJeff Law <law@redhat.com>
Thu, 16 May 1996 04:49:12 +0000 (04:49 +0000)
Net buglet.

gdb/ChangeLog
gdb/top.c

index f92d13db2d83d6f0cc59406f8c1f4e27da650a35..23fe27d822aef811ceb7e1b3cedee11424944ece 100644 (file)
@@ -7,6 +7,8 @@ end-sanitize-gdbtk
 
 Wed May 15 08:25:12 1996  Jeffrey A Law  (law@cygnus.com)
 
+       * top.c (read_next_line): Fix thinkos.  From Don Seeley.
+
        * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
        C_STAT symbols.
        * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
index 40a4b342bce0c87eaca37ac6a9acd47716f01fac..be7db39afccb870f58a9cddcd1c7f99a55d54b2e 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2183,7 +2183,7 @@ read_next_line (command)
     *command = build_command_line (while_control, p + 6);
   else if (p1 - p > 2 && !strncmp (p, "if", 2))
     *command = build_command_line (if_control, p + 3);
-  else if (p1 - p == 5 && !strncmp (p, "loop_break", 5))
+  else if (p1 - p == 10 && !strncmp (p, "loop_break", 10))
     {
       *command = (struct command_line *)
        xmalloc (sizeof (struct command_line));
@@ -2193,7 +2193,7 @@ read_next_line (command)
       (*command)->body_count = 0;
       (*command)->body_list = NULL;
     }
-  else if (p1 - p == 8 && !strncmp (p, "loop_continue", 8))
+  else if (p1 - p == 13 && !strncmp (p, "loop_continue", 13))
     {
       *command = (struct command_line *)
        xmalloc (sizeof (struct command_line));