This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [rfa/cli] Check for bad switch in defind_command


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]