This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/cli] Check for bad switch in defind_command
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfa/cli] Check for bad switch in defind_command
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 30 Jan 2001 18:34:07 -0500
- CC: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Red Hat , Inc. - Toronto
- References: <3A774B71.1D0D5273@cygnus.com>
Andrew Cagney wrote:
>
> Hello,
>
> To follow up the attatched e-mail. The below should fix the HP build
> problem.
>
> Andrew
>
Good idea. Please check it in.
Fernando
> ------------------------------------------------------------------------------------
> 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.
>
> Index: cli/cli-script.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/cli/cli-script.c,v
> retrieving revision 1.2
> diff -p -r1.2 cli-script.c
> *** cli-script.c 2000/12/15 01:01:51 1.2
> --- cli-script.c 2001/01/30 23:16:29
> *************** define_command (char *comname, int from_
> *** 1169,1174 ****
> --- 1169,1175 ----
> break;
> default:
> /* Should never come here as hookc would be 0. */
> + internal_error ("%s:%d: bad switch", __FILE__, __LINE__);
> }
> }
> }
>
>
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9