summaryrefslogtreecommitdiffstats
path: root/gcc/ada/exp_dbug.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/exp_dbug.ads')
-rw-r--r--gcc/ada/exp_dbug.ads18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ada/exp_dbug.ads b/gcc/ada/exp_dbug.ads
index 0290168ff01..41d4090639f 100644
--- a/gcc/ada/exp_dbug.ads
+++ b/gcc/ada/exp_dbug.ads
@@ -1442,6 +1442,24 @@ package Exp_Dbug is
-- corresponding to variants, and consider the fields inside as belonging
-- to the containing record.
+ -----------------------------------------------
+ -- Extra renamings for subprogram instances --
+ -----------------------------------------------
+
+ procedure Build_Subprogram_Instance_Renamings
+ (N : Node_Id;
+ Wrapper : Entity_Id);
+
+ -- The debugger has difficulties in recovering the value of actuals of an
+ -- elementary type, from within the body of a subprogram instantiation.
+ -- This is because such actuals generate an object declaration that is
+ -- placed within the wrapper package of the instance, and the entity in
+ -- these declarations is encoded in a complex way that GDB does not handle
+ -- well. These new renaming declarations appear within the body of the
+ -- subprogram, and are redundant from a visibility point of view, but They
+ -- should have no measurable performance impact, and require no special
+ -- decoding in the debugger.
+
-------------------------------------------
-- Character literals in Character Types --
-------------------------------------------
OpenPOWER on IntegriCloud