aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-01-11 05:29:05 +0100
committerTristan Gingold <tgingold@free.fr>2023-01-11 05:29:05 +0100
commit1989110a760403d7067936c98a22ea1eb0db2ab0 (patch)
tree3a7eb9451454fd68c98552829faaa0cd5a7f7714 /src/vhdl
parentabc76f1224bd8b42b8c5f49afc110c4ee1dda4af (diff)
downloadghdl-1989110a760403d7067936c98a22ea1eb0db2ab0.tar.gz
ghdl-1989110a760403d7067936c98a22ea1eb0db2ab0.tar.bz2
ghdl-1989110a760403d7067936c98a22ea1eb0db2ab0.zip
simul: improve support of psl in debugger
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-sem_scopes.adb14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/vhdl/vhdl-sem_scopes.adb b/src/vhdl/vhdl-sem_scopes.adb
index fcc2707fa..4a4f65f64 100644
--- a/src/vhdl/vhdl-sem_scopes.adb
+++ b/src/vhdl/vhdl-sem_scopes.adb
@@ -1289,10 +1289,16 @@ package body Vhdl.Sem_Scopes is
begin
El := Get_Concurrent_Statement_Chain (Parent);
while El /= Null_Iir loop
- Label := Get_Label (El);
- if Label /= Null_Identifier then
- Add_Name (El, Get_Identifier (El), False);
- end if;
+ case Get_Kind (El) is
+ when Iir_Kind_Psl_Default_Clock =>
+ -- Not a statement with label.
+ null;
+ when others =>
+ Label := Get_Label (El);
+ if Label /= Null_Identifier then
+ Add_Name (El, Get_Identifier (El), False);
+ end if;
+ end case;
El := Get_Chain (El);
end loop;
end Add_Declarations_Of_Concurrent_Statement;