aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-05-16 04:49:12 +0000
committerJeff Law <law@redhat.com>1996-05-16 04:49:12 +0000
commitecebd69348ff47a1e17674862873b607615420bb (patch)
tree6e1f2b4b4cf8bce4a983082b259d8fc8a26d7cee /gdb/top.c
parentb8f3d4c6b06b80fc5ef0ab3eff03cb5d8753c78a (diff)
downloadgdb-ecebd69348ff47a1e17674862873b607615420bb.zip
gdb-ecebd69348ff47a1e17674862873b607615420bb.tar.gz
gdb-ecebd69348ff47a1e17674862873b607615420bb.tar.bz2
* top.c (read_next_line): Fix thinkos. From Don Seeley.
Net buglet.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 40a4b34..be7db39 100644
--- 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));