aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-debugger.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-11-20 07:40:25 +0100
committerTristan Gingold <tgingold@free.fr>2019-11-20 18:29:51 +0100
commit01b133bc895d91e096ae054b5d02c1e6e54ec2e1 (patch)
tree8a0e14727a459a4be4b6e1581446af8a12f0f0a3 /src/synth/synth-debugger.ads
parent65abd669b8cdeff955a5c4264c99a97110cd8a93 (diff)
downloadghdl-01b133bc895d91e096ae054b5d02c1e6e54ec2e1.tar.gz
ghdl-01b133bc895d91e096ae054b5d02c1e6e54ec2e1.tar.bz2
ghdl-01b133bc895d91e096ae054b5d02c1e6e54ec2e1.zip
synth: infrastructure for debugger.
Diffstat (limited to 'src/synth/synth-debugger.ads')
-rw-r--r--src/synth/synth-debugger.ads31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/synth/synth-debugger.ads b/src/synth/synth-debugger.ads
new file mode 100644
index 000000000..b993cd3e1
--- /dev/null
+++ b/src/synth/synth-debugger.ads
@@ -0,0 +1,31 @@
+-- Debugging during synthesis.
+-- Copyright (C) 2019 Tristan Gingold
+--
+-- This file is part of GHDL.
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; either version 2 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program; if not, write to the Free Software
+-- Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+-- MA 02110-1301, USA.
+
+with Vhdl.Nodes; use Vhdl.Nodes;
+
+with Synth.Context; use Synth.Context;
+
+package Synth.Debugger is
+ -- If true, call Debug() before executing the next sequential statement.
+ Flag_Need_Debug : Boolean := False;
+
+ procedure Debug_Init;
+ procedure Debug_Break (Inst : Synth_Instance_Acc; Stmt : Node);
+end Synth.Debugger;