summaryrefslogtreecommitdiff
path: root/gcc/vmsdbgout.c
diff options
context:
space:
mode:
authorrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 19:15:12 +0000
committerrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 19:15:12 +0000
commit109cedc7403b583243c11f89be71c08b4d3fd6f8 (patch)
tree1316266380dc94b11d8c5d3897718d7b30064622 /gcc/vmsdbgout.c
parentba0fc22bcbdc6b75acaa869c5e4c87c33b71150c (diff)
downloadgcc-109cedc7403b583243c11f89be71c08b4d3fd6f8.tar.gz
* vmsdbgout.c (full_name): Just output the file name if not native.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161557 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/vmsdbgout.c')
-rw-r--r--gcc/vmsdbgout.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c
index dba126d7739..129ee78cdd3 100644
--- a/gcc/vmsdbgout.c
+++ b/gcc/vmsdbgout.c
@@ -1310,13 +1310,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;