Patchwork Remove unixims in filename output in vmsdbgout.c

login
register
mail settings
Submitter Douglas B Rupp
Date June 26, 2010, 7:52 p.m.
Message ID <4C265A6C.5020804@gnat.com>
Download mbox | patch
Permalink /patch/57066/
State New
Headers show

Comments

Douglas B Rupp - June 26, 2010, 7:52 p.m.
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.
Richard Henderson - June 28, 2010, 4:36 p.m.
On 06/26/2010 12:52 PM, Douglas B Rupp wrote:
> 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?

Ok.


r~

Patch

--- 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;