Skip to content

Commit 5430098

Browse files
author
Sergio Durigan Junior
committed
Fix build breakage from last commit (window-nat.c:windows_create_inferior)
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 *'.
1 parent 7c5ded6 commit 5430098

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gdb/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2+
3+
* windows-nat.c (windows_create_inferior): Declare 'toexec' as
4+
'const char *'.
5+
16
2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
27

38
* common/common-utils.c (free_vector_argv): New function.

gdb/windows-nat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ windows_create_inferior (struct target_ops *ops, const char *exec_file,
24322432
#else /* !__CYGWIN__ */
24332433
char real_path[__PMAX];
24342434
char shell[__PMAX]; /* Path to shell */
2435-
char *toexec;
2435+
const char *toexec;
24362436
const char *allargs = origallargs.c_str ();
24372437
char *args, *allargs_copy;
24382438
size_t args_len, allargs_len;

0 commit comments

Comments
 (0)