m3dev

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3a09e1c522eb3ff7dee4d3f77b17c65691d6ebce
parent 483e0ff30303655eb57c3fad6732cc4b5ea0584e
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon, 22 Jun 2015 23:30:42 -0700

debugger: fix output corruption, reduce chatter

Diffstat:
Mtools/debugger-core.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/tools/debugger-core.c b/tools/debugger-core.c @@ -79,14 +79,21 @@ static pthread_t _dbg_thread; void debugger_lock() { pthread_mutex_lock(&_dbg_lock); if (swdp_clear_error()) { +#if 0 + // way too noisy if the link goes down + linenoisePause(); xprintf("SWD ERROR persists. Attempting link reset.\n"); + linenoiseResume(); +#endif swdp_reset(); } } void debugger_unlock() { if (swdp_error()) { + linenoisePause(); xprintf("SWD ERROR\n"); + linenoiseResume(); } pthread_mutex_unlock(&_dbg_lock); }