Skip to content
Snippets Groups Projects
Commit 7adc4501 authored by erwan's avatar erwan
Browse files

rdbg fix: the potential was not provided at silent rdbg event for internal daemons

parent 3edf66f6
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,8 @@ let (make_do: string array -> SasArg.t -> ...@@ -88,7 +88,8 @@ let (make_do: string array -> SasArg.t ->
(Sasacore.Main.get_outputs_rif_decl args pl) (Sasacore.Main.get_outputs_rif_decl args pl)
in in
let vntl_o = let vntl_o =
if Register.get_potential () = None then vntl_o else ("potential", Data.Real)::vntl_o in if Register.get_potential () = None then vntl_o else
("potential", Data.Real)::vntl_o in
let vntl_o = ("silent", Data.Bool)::("legitimate", Data.Bool)::vntl_o in let vntl_o = ("silent", Data.Bool)::("legitimate", Data.Bool)::vntl_o in
let pre_enable_processes_opt = ref None in let pre_enable_processes_opt = ref None in
let sasa_env = ref e in let sasa_env = ref e in
...@@ -144,7 +145,7 @@ let (make_do: string array -> SasArg.t -> ...@@ -144,7 +145,7 @@ let (make_do: string array -> SasArg.t ->
let silent = List.for_all (fun b -> not b) (List.flatten enab_ll) in let silent = List.for_all (fun b -> not b) (List.flatten enab_ll) in
let legit = compute_legitimate silent p_nl_l e in let legit = compute_legitimate silent p_nl_l e in
if silent then ( if silent then (
("silent", Data.B silent)::("legitimate", Data.B legit):: ("silent", Data.B silent)::("legitimate", Data.B legit)::pot_sl@
(from_sasa_env p_nl_l e) @ (get_sl_out true pl enab_ll) (from_sasa_env p_nl_l e) @ (get_sl_out true pl enab_ll)
) )
else else
...@@ -165,8 +166,8 @@ let (make_do: string array -> SasArg.t -> ...@@ -165,8 +166,8 @@ let (make_do: string array -> SasArg.t ->
let step_dbg sl_in ctx cont = let step_dbg sl_in ctx cont =
let sl_out = step sl_in in let sl_out = step sl_in in
{ ctx with { ctx with
(* RdbgEvent.nb = 0; *) (* RdbgEvent.nb = 0; *)
(* RdbgEvent.step = 0; (* we are actually in the middle of the first step! *) *) (* RdbgEvent.step = 0; (* we are actually in the middle of the first step! *) *)
RdbgEvent.depth = ctx.RdbgEvent.depth + 1; RdbgEvent.depth = ctx.RdbgEvent.depth + 1;
RdbgEvent.kind = RdbgEvent.Exit; RdbgEvent.kind = RdbgEvent.Exit;
RdbgEvent.lang = "sasa"; RdbgEvent.lang = "sasa";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment