From e191e0abe5e90c81f39b0a428de8e4e44184161f Mon Sep 17 00:00:00 2001
From: Andrew Cagney <cagney@redhat.com>
Date: Wed, 31 Jan 2001 00:50:01 +0000
Subject: * cli/cli-script.c (define_command): Check for a bad hook value in
 switch statement.

---
 gdb/cli/cli-script.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'gdb/cli/cli-script.c')

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__);
         }
     }
 }
-- 
cgit v1.1