diff options
author | Douglas B Rupp <rupp@gnat.com> | 2010-06-29 19:15:12 +0000 |
---|---|---|
committer | Douglas Rupp <rupp@gcc.gnu.org> | 2010-06-29 19:15:12 +0000 |
commit | 6a07b0071fba51ba153a75763bf0ef1e8f1c1703 (patch) | |
tree | 1316266380dc94b11d8c5d3897718d7b30064622 | |
parent | 6ca45368787c9443bed9b9466ad0851a9493847d (diff) | |
download | gcc-6a07b0071fba51ba153a75763bf0ef1e8f1c1703.zip gcc-6a07b0071fba51ba153a75763bf0ef1e8f1c1703.tar.gz gcc-6a07b0071fba51ba153a75763bf0ef1e8f1c1703.tar.bz2 |
vmsdbgout.c (full_name): Just output the file name if not native.
* vmsdbgout.c (full_name): Just output the file name if not native.
From-SVN: r161557
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/vmsdbgout.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1b3cd8..8608a33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2010-06-29 Douglas B Rupp <rupp@gnat.com> + * vmsdbgout.c (full_name): Just output the file name if not native. + +2010-06-29 Douglas B Rupp <rupp@gnat.com> + * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables. (funcnam_table): New static table. (funcnum_table): New static table. diff --git a/gcc/vmsdbgout.c b/gcc/vmsdbgout.c index dba126d..129ee78 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; |