Skip to content

Commit

Permalink
Fix build breakage from last commit (window-nat.c:windows_create_infe…
Browse files Browse the repository at this point in the history
…rior)

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 *'.
  • Loading branch information
Sergio Durigan Junior committed Apr 12, 2017
1 parent 7c5ded6 commit 5430098
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gdb/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion gdb/windows-nat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5430098

Please sign in to comment.