Before this patch, Print_Node failed to honor its Prefix_Char formal
parameter when printing the Parent field. This had no consequences
because Prefix_Char was only used to print members of Nlists, and those
don't have a parent in the tree. But this patch fixes it anyway in
preparation for new debug printing features.
gcc/ada/ChangeLog:
* treepr.adb (Print_Node): Tweak Parent field printing.
end if;
if not Is_List_Member (N) then
- Print_Str (Prefix_Str);
- Print_Str (" Parent = ");
+ Print_Str (Prefix);
+ Print_Str ("Parent = ");
Print_Node_Ref (Parent (N));
Print_Eol;
end if;