@@ -45,7 +45,6 @@ with Qemu_Traces;
4545with SC_Obligations ;
4646with Strings ;
4747with Support_Files ;
48- with Switches ;
4948with Traces ; use Traces;
5049with Traces_Dbase ;
5150with Traces_Elf ; use Traces_Elf;
@@ -1750,29 +1749,16 @@ package body CFG_Dump is
17501749 Context.Keep_Edges := Keep_Edges;
17511750 Context.Tag_Executed := Inputs.Length (Traces_Files_List) > 0 ;
17521751
1753- if Switches.Verbose then
1754- Report
1755- (Msg => " Hello, this is the dumper!" ,
1756- Kind => Notice);
1757- Report
1758- (Msg => " Dumping code from: " & Exec_Path,
1759- Kind => Notice);
1760- Report
1761- (Msg =>
1762- (if Output = null
1763- then " To standard output"
1764- else " To " & Output.all ),
1765- Kind => Notice);
1766- Report
1767- (Msg => " Format: " & Output_Format'Image (Format),
1768- Kind => Notice);
1769- Report
1770- (Msg =>
1771- (if Keep_Edges
1772- then " Keep edges that follow exception raises"
1773- else " Strip edges that follow exception raises" ),
1774- Kind => Notice);
1775- end if ;
1752+ CFG_Dump_Trace.Trace (" Dumping code from: " & Exec_Path);
1753+ CFG_Dump_Trace.Trace
1754+ (if Output = null
1755+ then " To standard output"
1756+ else " To " & Output.all );
1757+ CFG_Dump_Trace.Trace (" Format: " & Output_Format'Image (Format));
1758+ CFG_Dump_Trace.Trace
1759+ (if Keep_Edges
1760+ then " Keep edges that follow exception raises"
1761+ else " Strip edges that follow exception raises" );
17761762
17771763 begin
17781764 Execs_Dbase.Open_Exec (Exec_Path, 0 , Context.Exec);
@@ -1781,38 +1767,26 @@ package body CFG_Dump is
17811767 Fatal_Error (" Could not open " & Exec_Path);
17821768 end ;
17831769
1784- if Switches.Verbose then
1785- Report (Msg => " Reading symbols..." , Kind => Notice);
1786- end if ;
1770+ CFG_Dump_Trace.Trace (" Reading symbols..." );
17871771 Build_Symbols (Context.Exec.all );
17881772
17891773 Translate_Locations (Ctx.Exec, Locations, Context.Locs);
17901774
17911775 if Context.Group_By_Condition then
17921776 Coverage.Set_Coverage_Levels (" stmt+mcdc" );
1793- if Switches.Verbose then
1794- Report (Msg => " Loading ALI files..." , Kind => Notice);
1795- end if ;
1777+ CFG_Dump_Trace.Trace (" Loading ALI files..." );
17961778 Inputs.Iterate (SCO_Files_List, Load_SCOs'Access );
17971779 Coverage.Source.Initialize_SCI;
17981780
1799- if Switches.Verbose then
1800- Report (Msg => " Reading routine names..." , Kind => Notice);
1801- end if ;
1781+ CFG_Dump_Trace.Trace (" Reading routine names..." );
18021782 Read_Routine_Names (Context.Exec.all , Exclude => False);
18031783 end if ;
18041784
1805- if Switches.Verbose then
1806- Report (Msg => " Reading debug line info..." , Kind => Notice);
1807- end if ;
1785+ CFG_Dump_Trace.Trace (" Reading debug line info..." );
18081786 Build_Debug_Lines (Context.Exec.all );
18091787
18101788 if Context.Group_By_Condition then
1811- if Switches.Verbose then
1812- Report
1813- (Msg => " Performing static analysis for decisions..." ,
1814- Kind => Notice);
1815- end if ;
1789+ CFG_Dump_Trace.Trace (" Performing static analysis for decisions..." );
18161790 Decision_Map.Analyze (Context.Exec);
18171791 end if ;
18181792
@@ -1826,13 +1800,10 @@ package body CFG_Dump is
18261800 exit when Section = null ;
18271801
18281802 if Section.Section_Name.all = " .text" then
1829- if Switches.Verbose then
1830- Report
1831- (Msg => " ELF section #"
1832- & Strings.Img (Integer (Section.Section_Sec_Idx))
1833- & " looks interesting: loading its instructions..." ,
1834- Kind => Notice);
1835- end if ;
1803+ CFG_Dump_Trace.Trace
1804+ (" ELF section #"
1805+ & Strings.Img (Integer (Section.Section_Sec_Idx))
1806+ & " looks interesting: loading its instructions..." );
18361807 Load_Section_Content (Context.Exec.all , Section);
18371808 Collect_Instructions (Ctx, Section);
18381809 end if ;
0 commit comments