summaryrefslogtreecommitdiffstats
path: root/gcc/ada/sprint.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sprint.adb')
-rw-r--r--gcc/ada/sprint.adb9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/sprint.adb b/gcc/ada/sprint.adb
index 63bfd54c95c..503c6f4366e 100644
--- a/gcc/ada/sprint.adb
+++ b/gcc/ada/sprint.adb
@@ -1062,8 +1062,15 @@ package body Sprint is
Write_Str_Sloc (" and then ");
Sprint_Right_Opnd (Node);
+ -- Note: the following code for N_Aspect_Specification is not
+ -- normally used, since we deal with aspects as part of a
+ -- declaration, but it is here in case we deliberately try
+ -- to print an N_Aspect_Speficiation node (e.g. from GDB).
+
when N_Aspect_Specification =>
- raise Program_Error;
+ Sprint_Node (Identifier (Node));
+ Write_Str (" => ");
+ Sprint_Node (Expression (Node));
when N_Assignment_Statement =>
Write_Indent;
OpenPOWER on IntegriCloud