summaryrefslogtreecommitdiff
path: root/ortho/debug
diff options
context:
space:
mode:
authorTristan Gingold2014-02-01 03:39:21 +0100
committerTristan Gingold2014-02-01 03:39:21 +0100
commit933e75dc239b56645ec03350ab3d6cfad0903679 (patch)
tree5b757aa0da098c073ea00898132817d6b6974d6a /ortho/debug
parentb0bb2f78b3722a2afe626bc748d8c54c0cb41fde (diff)
downloadghdl-933e75dc239b56645ec03350ab3d6cfad0903679.tar.gz
ghdl-933e75dc239b56645ec03350ab3d6cfad0903679.tar.bz2
ghdl-933e75dc239b56645ec03350ab3d6cfad0903679.zip
ortho debug/oread: remove syntax ambiguity for multiple case choices.
Diffstat (limited to 'ortho/debug')
-rw-r--r--ortho/debug/ortho_debug-disp.adb9
1 files changed, 6 insertions, 3 deletions
diff --git a/ortho/debug/ortho_debug-disp.adb b/ortho/debug/ortho_debug-disp.adb
index ebaf3e9..010f0f1 100644
--- a/ortho/debug/ortho_debug-disp.adb
+++ b/ortho/debug/ortho_debug-disp.adb
@@ -938,8 +938,8 @@ package body Ortho_Debug.Disp is
begin
Rem_Tab;
Choice := Stmt.Choice_List;
- while Choice /= null loop
- Put ("when ");
+ Put ("when ");
+ loop
case Choice.Kind is
when ON_Choice_Expr =>
Disp_Cnode (Choice.Expr, Choice_Type);
@@ -950,9 +950,12 @@ package body Ortho_Debug.Disp is
when ON_Choice_Default =>
Put ("default");
end case;
- Put_Line (" =>");
Choice := Choice.Next;
+ exit when Choice = null;
+ Put_Line (",");
+ Put (" ");
end loop;
+ Put_Line (" =>");
Add_Tab;
end;
when ON_Call_Stmt =>