summaryrefslogtreecommitdiff
path: root/src/vhdl/translate/translation.adb
diff options
context:
space:
mode:
authorTristan Gingold2014-12-16 08:54:39 +0100
committerTristan Gingold2014-12-16 08:54:39 +0100
commit2e968e60ccadeebd1186dca7286d34bbf76d7296 (patch)
tree94378f82314cdbaaa57cebd67d036d2147e12efc /src/vhdl/translate/translation.adb
parent3acfb5bd111360e3b98dadd46ac96980957f4381 (diff)
downloadghdl-2e968e60ccadeebd1186dca7286d34bbf76d7296.tar.gz
ghdl-2e968e60ccadeebd1186dca7286d34bbf76d7296.tar.bz2
ghdl-2e968e60ccadeebd1186dca7286d34bbf76d7296.zip
translation: give full path for to debug filename.
Diffstat (limited to 'src/vhdl/translate/translation.adb')
-rw-r--r--src/vhdl/translate/translation.adb11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vhdl/translate/translation.adb b/src/vhdl/translate/translation.adb
index 42ffbab..7ba0085 100644
--- a/src/vhdl/translate/translation.adb
+++ b/src/vhdl/translate/translation.adb
@@ -22,6 +22,7 @@ with Ada.Text_IO;
with Types; use Types;
with Errorout; use Errorout;
with Name_Table; -- use Name_Table;
+with Files_Map;
with Iirs_Utils; use Iirs_Utils;
with Std_Package; use Std_Package;
with Sem_Specs;
@@ -270,8 +271,14 @@ package body Translation is
Set_Global_Storage (O_Storage_External);
end if;
- New_Debug_Filename_Decl
- (Name_Table.Image (Get_Design_File_Filename (Design_File)));
+ declare
+ Pathname : constant String := Files_Map.Get_Pathname
+ (Get_Design_File_Directory (Design_File),
+ Get_Design_File_Filename (Design_File),
+ False);
+ begin
+ New_Debug_Filename_Decl (Pathname);
+ end;
Current_Library_Unit := El;