* cli/cli-script.c (define_command): Check for a bad hook value in
authorAndrew Cagney <cagney@redhat.com>
Wed, 31 Jan 2001 00:50:01 +0000 (00:50 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 31 Jan 2001 00:50:01 +0000 (00:50 +0000)
switch statement.

gdb/ChangeLog
gdb/cli/cli-script.c

index 8974b8eec6a725a3e5de704a8e9955cb4ce47795..80480fc3ef873e9ae60832880c36e025d08f5541 100644 (file)
@@ -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.
index 66aa4fa1b9ee1c4921e4a7a4ecc33e043b73dc9e..ce4cca4c0ac3e1673aa9991dc153d6a674724256 100644 (file)
@@ -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__);
         }
     }
 }