rtic-scope / cargo-rtic-scope

Non-intrusive ITM tracing/replay toolset for RTIC programs with nanosecond timestamp accuracy.
16 stars 4 forks source link

SIGINT not handled properly when trace stream is empty #64

Closed tmplt closed 2 years ago

tmplt commented 2 years ago

When the target no longer emits trace packets and the user signals SIGINT, cargo-rtic-scope never halts. source.next() and the halt condition must be polled to fix this.

Some asynchronous programming must be applied. I believe select! can do what we want.