This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove unixims in filename output in vmsdbgout.c
- From: Douglas B Rupp <rupp at gnat dot com>
- To: Jim Wilson <wilson at codesourcery dot com>, Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Jun 2010 12:52:12 -0700
- Subject: [PATCH] Remove unixims in filename output in vmsdbgout.c
Unix paths cause Alpha/VMS Debug insurmountable difficulty, so pending
the implementation of a conversion function, it's better to just output
the filename without the path. That way at least the debugger can find
the file if told where to look.
OK to commit?
2010-06-26 Douglas B Rupp <rupp@gnat.com>
* vmsdbgout.c (full_name): Just output the file name if not native.
--- gcc/vmsdbgout.c 2010-06-16 12:40:46.000000000 -0700
+++ gcc/vmsdbgout.c 2010-06-25 23:25:23.000000000 -0700
@@ -1423,13 +1313,9 @@ full_name (const char *filename)
fgetname (fp, fullname_buff, 1);
fclose (fp);
#else
- getcwd (fullname_buff, sizeof (fullname_buff));
-
- strcat (fullname_buff, "/");
- strcat (fullname_buff, filename);
-
- /* ??? Insert hairy code here to translate Unix style file specification
- to VMS style. */
+ /* Unix paths really mess up VMS debug. Better to just output the
+ base filename. */
+ strcpy (fullname_buff, filename);
#endif
return fullname_buff;