GDB/MI: crash printing "_task" (Ada) argument
[binutils-gdb.git] / gdb / mi / mi-getopt.h
index ed9cc191c0ffa9957865907b20cca9e82c73ebb2..ea09b4407032de2e88b378729dea3495a8741cdc 100644 (file)
@@ -1,5 +1,5 @@
 /* MI Option Parser.
-   Copyright (C) 2000, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2007-2012 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions (a Red Hat company).
 
    This file is part of GDB.
@@ -41,7 +41,7 @@
 
 struct mi_opt;
 extern int mi_getopt (const char *prefix, int argc, char **argv,
-                     struct mi_opt *opt, int *optind, char **optarg);
+                     const struct mi_opt *opt, int *optind, char **optarg);
 
 /* The option list.  Terminated by NAME==NULL.  ARG_P that the option
    requires an argument.  INDEX is returned to identify th option. */