diff options
author | Tristan Gingold <tgingold@free.fr> | 2014-12-13 07:34:11 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2014-12-13 07:34:11 +0100 |
commit | 687d32b88144d65f153eea439cbf9ce763c2d5c5 (patch) | |
tree | 2221af4f3cbcf0129744ebd7b63daf6abcf3900b /src/grt/grt-rtis_addr.adb | |
parent | 13adc95751db357e2060b16fee2baaa818743b91 (diff) | |
download | ghdl-687d32b88144d65f153eea439cbf9ce763c2d5c5.tar.gz ghdl-687d32b88144d65f153eea439cbf9ce763c2d5c5.tar.bz2 ghdl-687d32b88144d65f153eea439cbf9ce763c2d5c5.zip |
rtis: add source location for blocks and object. Use them in fst dumper.
Diffstat (limited to 'src/grt/grt-rtis_addr.adb')
-rw-r--r-- | src/grt/grt-rtis_addr.adb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/grt/grt-rtis_addr.adb b/src/grt/grt-rtis_addr.adb index 70a0e2118..d9f746e5b 100644 --- a/src/grt/grt-rtis_addr.adb +++ b/src/grt/grt-rtis_addr.adb @@ -187,15 +187,14 @@ package body Grt.Rtis_Addr is Ctxt : Rti_Context; Sub_Ctxt : out Rti_Context) is - Inst_Addr : Address; - Inst_Base : Address; - begin -- Address of the field containing the address of the instance. - Inst_Addr := Ctxt.Base + Inst.Loc; + Inst_Addr : constant Address := Ctxt.Base + Inst.Loc; -- Read sub instance address. - Inst_Base := To_Addr_Acc (Inst_Addr).all; + Inst_Base : constant Address := To_Addr_Acc (Inst_Addr).all; + begin -- Read instance RTI. if Inst_Base = Null_Address then + -- No instance. Sub_Ctxt := (Base => Null_Address, Block => null); else Sub_Ctxt := (Base => Inst_Base, |