Message ID | 4C265A6C.5020804@gnat.com |
---|---|
State | New |
Headers | show |
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~
--- 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;