aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.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/symfile.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/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 55a9f5c..58c4ff9 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1738,7 +1738,7 @@ symfile_bfd_open (const char *name)
#if defined(__GO32__) || defined(_WIN32) || defined (__CYGWIN__)
if (desc < 0)
{
- char *exename = alloca (strlen (expanded_name) + 5);
+ char *exename = (char *) alloca (strlen (expanded_name) + 5);
strcat (strcpy (exename, expanded_name), ".exe");
desc = openp (getenv ("PATH"),