Xenomai runtime: ensure that __DEBUG global variable is set when resuming debug. RuntimeLists
authorEdouard Tisserant
Thu, 16 Dec 2021 08:32:58 +0100
branchRuntimeLists
changeset 3398 7ca3924be865
parent 3397 75920c99ffc9
child 3399 95e0b926a8c3
Xenomai runtime: ensure that __DEBUG global variable is set when resuming debug.
targets/Xenomai/plc_Xenomai_main.c
--- a/targets/Xenomai/plc_Xenomai_main.c	Thu Dec 16 08:15:34 2021 +0100
+++ b/targets/Xenomai/plc_Xenomai_main.c	Thu Dec 16 08:32:58 2021 +0100
@@ -384,6 +384,7 @@
 
 void resumeDebug(void)
 {
+    __DEBUG = 1;
     AtomicCompareExchange( &debug_state, DEBUG_BUSY, DEBUG_FREE);
 }