diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-31 00:50:01 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-31 00:50:01 +0000 |
commit | e191e0abe5e90c81f39b0a428de8e4e44184161f (patch) | |
tree | de9cde16f7cdd041158ca712915a7789884437ce /gdb/cli | |
parent | 10214f55f89afdbd74a166143c1e6c0e43bac839 (diff) | |
download | fsf-binutils-gdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.zip fsf-binutils-gdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.tar.gz fsf-binutils-gdb-e191e0abe5e90c81f39b0a428de8e4e44184161f.tar.bz2 |
* cli/cli-script.c (define_command): Check for a bad hook value in
switch statement.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 1 |
1 files changed, 1 insertions, 0 deletions
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__); } } } |