Fix build breakage from last commit (window-nat.c:windows_create_inferior)
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 12 Apr 2017 05:16:50 +0000 (01:16 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Wed, 12 Apr 2017 05:16:50 +0000 (01:16 -0400)
Forgot to declare the variable 'toexec' (from
window-nat.c:windows_create_inferior) as 'const char *', which caused
a build breakage.

gdb/ChangeLog:
2017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>

* windows-nat.c (windows_create_inferior): Declare 'toexec' as
'const char *'.

gdb/ChangeLog
gdb/windows-nat.c

index c8f1bcfbc53d7ce131689d14d210b55fd9cb7b7d..087c0735c23744170a4733b0e070b91472fe656a 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * windows-nat.c (windows_create_inferior): Declare 'toexec' as
+       'const char *'.
+
 2017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * common/common-utils.c (free_vector_argv): New function.
index dd5cfe4cad453b4b0d761324dde0fff8fcd7d4d8..d9a4f0a4fd3af228a3e07c443c36ff39fbd4a8de 100644 (file)
@@ -2432,7 +2432,7 @@ windows_create_inferior (struct target_ops *ops, const char *exec_file,
 #else  /* !__CYGWIN__ */
   char real_path[__PMAX];
   char shell[__PMAX]; /* Path to shell */
-  char *toexec;
+  const char *toexec;
   const char *allargs = origallargs.c_str ();
   char *args, *allargs_copy;
   size_t args_len, allargs_len;