Fix PR threads/19422 - show which thread caused stop
[deliverable/binutils-gdb.git] / gdb / exec.c
index 3089bb4f42a8bcdf5dd695d522e8f2e42a2a4796..23c89c252154feba1c9293beeb140bd83850393e 100644 (file)
@@ -1,6 +1,6 @@
 /* Work with executable files, for GDB. 
 
-   Copyright (C) 1988-2015 Free Software Foundation, Inc.
+   Copyright (C) 1988-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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,
This page took 0.024414 seconds and 4 git commands to generate.