aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-07-24 12:52:00 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-10-20 03:21:53 -0400
commit420021eaee552b73c2b3c7031c983b605efcc59c (patch)
tree5039fe075b108863731b6884bc6ff073b07ff6d1 /gcc
parent3bb4836fe169a7430a4a3e964e3ea63d2e358e4b (diff)
downloadgcc-420021eaee552b73c2b3c7031c983b605efcc59c.zip
gcc-420021eaee552b73c2b3c7031c983b605efcc59c.tar.gz
gcc-420021eaee552b73c2b3c7031c983b605efcc59c.tar.bz2
[Ada] Prevent crashes when pretty-printing freeze nodes from gdb
gcc/ada/ * sprint.adb (po): Set Dump_Freeze_Null to False; align colons. (ps): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/sprint.adb6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/sprint.adb b/gcc/ada/sprint.adb
index 3aeb95f..774bcf7 100644
--- a/gcc/ada/sprint.adb
+++ b/gcc/ada/sprint.adb
@@ -441,7 +441,8 @@ package body Sprint is
procedure po (Arg : Union_Id) is
begin
Dump_Generated_Only := False;
- Dump_Original_Only := True;
+ Dump_Original_Only := True;
+ Dump_Freeze_Null := False;
Current_Source_File := No_Source_File;
if Arg in List_Range then
@@ -473,7 +474,8 @@ package body Sprint is
procedure ps (Arg : Union_Id) is
begin
Dump_Generated_Only := False;
- Dump_Original_Only := False;
+ Dump_Original_Only := False;
+ Dump_Freeze_Null := False;
Current_Source_File := No_Source_File;
if Arg in List_Range then