aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/s-dwalin.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/libgnat/s-dwalin.adb')
-rw-r--r--gcc/ada/libgnat/s-dwalin.adb27
1 files changed, 16 insertions, 11 deletions
diff --git a/gcc/ada/libgnat/s-dwalin.adb b/gcc/ada/libgnat/s-dwalin.adb
index 1e97a47..75c9661 100644
--- a/gcc/ada/libgnat/s-dwalin.adb
+++ b/gcc/ada/libgnat/s-dwalin.adb
@@ -1912,11 +1912,12 @@ package body System.Dwarf_Lines is
------------------------
procedure Symbolic_Traceback
- (Cin : Dwarf_Context;
- Traceback : STE.Tracebacks_Array;
- Suppress_Hex : Boolean;
- Symbol_Found : out Boolean;
- Res : in out System.Bounded_Strings.Bounded_String)
+ (Cin : Dwarf_Context;
+ Traceback : STE.Tracebacks_Array;
+ Suppress_Hex : Boolean;
+ Display_Mode : Display_Mode_Type;
+ Symbol_Found : out Boolean;
+ Res : in out System.Bounded_Strings.Bounded_String)
is
use Ada.Characters.Handling;
C : Dwarf_Context := Cin;
@@ -1953,7 +1954,7 @@ package body System.Dwarf_Lines is
-- If we're not requested to suppress hex addresses, emit it now.
- if not Suppress_Hex then
+ if not Suppress_Hex and then Display_Mode = Full then
Append_Address (Res, Addr_In_Traceback);
Append (Res, ' ');
end if;
@@ -2006,10 +2007,12 @@ package body System.Dwarf_Lines is
Append (Res, "???");
end if;
- Append (Res, " at ");
- Append (Res, String (File_Name (1 .. Last)));
- Append (Res, ':');
- Append (Res, Line_Image (2 .. Line_Image'Last));
+ if Display_Mode = Full then
+ Append (Res, " at ");
+ Append (Res, String (File_Name (1 .. Last)));
+ Append (Res, ':');
+ Append (Res, Line_Image (2 .. Line_Image'Last));
+ end if;
end;
else
if Subprg_Name.Len > 0 then
@@ -2020,7 +2023,9 @@ package body System.Dwarf_Lines is
Append (Res, "???");
end if;
- Append (Res, " at ???");
+ if Display_Mode = Full then
+ Append (Res, " at ???");
+ end if;
end if;
Append (Res, ASCII.LF);