aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 00:50:01 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 00:50:01 +0000
commite191e0abe5e90c81f39b0a428de8e4e44184161f (patch)
treede9cde16f7cdd041158ca712915a7789884437ce
parent10214f55f89afdbd74a166143c1e6c0e43bac839 (diff)
downloadgdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.zip
gdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.tar.gz
gdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.tar.bz2
* cli/cli-script.c (define_command): Check for a bad hook value in
switch statement.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-script.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8974b8e..80480fc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
+
+ * cli/cli-script.c (define_command): Check for a bad hook value in
+ switch statement.
+
2001-01-30 J.T. Conklin <jtc@redback.com>
* configure/sh/embed.mt: New file.
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 66aa4fa..ce4cca4 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1169,6 +1169,7 @@ define_command (char *comname, int from_tty)
break;
default:
/* Should never come here as hookc would be 0. */
+ internal_error ("%s:%d: bad switch", __FILE__, __LINE__);
}
}
}