aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-17 15:17:44 +0000
committerPedro Alves <palves@redhat.com>2015-11-17 15:18:32 +0000
commit0ae1c716a162ce43a63c16c37aa8c6caaa484650 (patch)
tree630c06563fd7d07422ec860b14472865d79dc327 /gdb/exec.c
parentcd78b7a16778046c0cfa4818780ea94a9a90c32c (diff)
downloadgdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.zip
gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.gz
gdb-0ae1c716a162ce43a63c16c37aa8c6caaa484650.tar.bz2
[C++/mingw] Misc alloca casts
gdb/ChangeLog: 2015-11-17 Pedro Alves <palves@redhat.com> * exec.c (exec_file_attach, symfile_bfd_open) [__GO32__ || _WIN32 || __CYGWIN__]: Add casts. * utils.c (gdb_filename_fnmatch): Add cast. * windows-nat.c (windows_create_inferior): Add cast.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 3089bb4..2433019 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -254,7 +254,7 @@ exec_file_attach (const char *filename, int from_tty)
#if defined(__GO32__) || defined(_WIN32) || defined(__CYGWIN__)
if (scratch_chan < 0)
{
- char *exename = alloca (strlen (filename) + 5);
+ char *exename = (char *) alloca (strlen (filename) + 5);
strcat (strcpy (exename, filename), ".exe");
scratch_chan = openp (getenv ("PATH"), OPF_TRY_CWD_FIRST,