text
stringlengths 0
234
|
|---|
Out_Dir : constant VFS.Virtual_File :=
|
VFS.Create_From_Base (VFS."+" (Strings.To_String (Output_Dir.Get)));
|
Out_File : constant VFS.Virtual_File :=
|
VFS.Join (Out_Dir, "offmt_map.toml");
|
begin
|
return VFS."+" (Out_File.Full_Name);
|
end Map_Filename;
|
---------------------
|
-- Handle_Log_Call --
|
---------------------
|
procedure Handle_Log_Call (RH : LALRW.Rewriting_Handle;
|
Node : LAL.Call_Stmt'Class)
|
is
|
Call : LAL.Call_Expr;
|
begin
|
if Offmt_Lib.Detection.Check_Defmt_Log_Call (Node, Call) then
|
declare
|
S : constant LAL.Ada_Node := Call.F_Suffix;
|
Arg : LAL.Expr;
|
begin
|
Arg := S.Child (1).As_Param_Assoc.F_R_Expr;
|
declare
|
Arg_Val : constant LALEXPR.Eval_Result :=
|
LALEXPR.Expr_Eval (Arg);
|
begin
|
case Arg_Val.Kind is
|
when LALEXPR.String_Lit =>
|
declare
|
use Langkit_Support.Text;
|
Txt : constant Text_Type
|
:= To_Text (Arg_Val.String_Result);
|
Str : constant String := Image (Txt);
|
Trace : constant Offmt_Lib.Trace :=
|
Offmt_Lib.Parser.Parse (Str);
|
begin
|
Put_Line (Str);
|
Offmt_Lib.Pretty_Print (Trace);
|
Offmt_Lib.Rewrite.Rewrite_Log_Call (RH, Node, Trace);
|
All_Traces.Include (Trace.Id, Trace);
|
Function Definition: procedure adainit is
|
Function Body: Binder_Sec_Stacks_Count : Natural;
|
pragma Import (Ada, Binder_Sec_Stacks_Count, "__gnat_binder_ss_count");
|
Default_Secondary_Stack_Size : System.Parameters.Size_Type;
|
pragma Import (C, Default_Secondary_Stack_Size, "__gnat_default_ss_size");
|
Default_Sized_SS_Pool : System.Address;
|
pragma Import (Ada, Default_Sized_SS_Pool, "__gnat_default_ss_pool");
|
begin
|
null;
|
ada_main'Elab_Body;
|
Default_Secondary_Stack_Size := System.Parameters.Runtime_Default_Sec_Stack_Size;
|
Binder_Sec_Stacks_Count := 1;
|
Default_Sized_SS_Pool := Sec_Default_Sized_Stacks'Address;
|
E78 := E78 + 1;
|
Cortex_M.Nvic'Elab_Spec;
|
E76 := E76 + 1;
|
E68 := E68 + 1;
|
E28 := E28 + 1;
|
E70 := E70 + 1;
|
Nrf.Interrupts'Elab_Body;
|
E72 := E72 + 1;
|
E34 := E34 + 1;
|
E37 := E37 + 1;
|
E56 := E56 + 1;
|
E54 := E54 + 1;
|
E84 := E84 + 1;
|
E80 := E80 + 1;
|
E41 := E41 + 1;
|
E44 := E44 + 1;
|
E48 := E48 + 1;
|
Nrf.Device'Elab_Spec;
|
Nrf.Device'Elab_Body;
|
E06 := E06 + 1;
|
NRF52_DK.IOS'ELAB_SPEC;
|
NRF52_DK.IOS'ELAB_BODY;
|
E52 := E52 + 1;
|
NRF52_DK.TIME'ELAB_BODY;
|
E82 := E82 + 1;
|
E87 := E87 + 1;
|
end adainit;
|
procedure Ada_Main_Program;
|
pragma Import (Ada, Ada_Main_Program, "_ada_main");
|
procedure main is
|
Ensure_Reference : aliased System.Address := Ada_Main_Program_Name'Address;
|
pragma Volatile (Ensure_Reference);
|
begin
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.