diff -r 90db933fe956 -r 85e92d9e34a8 targets/plc_debug.c --- a/targets/plc_debug.c Fri Sep 05 18:15:18 2008 +0200 +++ b/targets/plc_debug.c Sun Sep 07 10:03:23 2008 +0200 @@ -53,7 +53,11 @@ void __init_debug() { %(variables_pointer_type_table_initializer)s -}; +AtomicCompareExchange( + &buffer_state, + BUFFER_BUSY, + BUFFER_FREE); +} void __cleanup_debug() {