aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-04 18:26:26 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-04 18:26:26 +0200
commit65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57 (patch)
tree1598db585bd0f49acca51960ab805fe84b62ebf0
parentce47f31048c5f6565f55a84bbb0283b573b87c74 (diff)
downloadghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.tar.gz
ghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.tar.bz2
ghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.zip
vhdl-prints: try to print error content.
-rw-r--r--src/vhdl/vhdl-prints.adb10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-prints.adb b/src/vhdl/vhdl-prints.adb
index f1704476a..634e2be3c 100644
--- a/src/vhdl/vhdl-prints.adb
+++ b/src/vhdl/vhdl-prints.adb
@@ -3601,6 +3601,16 @@ package body Vhdl.Prints is
when Iir_Kind_Signature =>
Disp_Signature (Ctxt, Expr);
+ when Iir_Kind_Error =>
+ declare
+ Orig : constant Iir := Get_Error_Origin (Expr);
+ begin
+ if Orig /= Null_Iir then
+ Print (Ctxt, Orig);
+ else
+ Error_Kind ("print/error", Expr);
+ end if;
+ end;
when others =>
Error_Kind ("print", Expr);
end case;