[goalc] improve reliability of debugger tests (#898)

* try fixing debugger test

* poke first

* debug print

* another try on debug prints

* start watcher after we did a break

* cleanup print statements, use sleep_for instead of usleep
This commit is contained in:
water111
2021-10-15 19:24:52 -04:00
committed by GitHub
parent 2fbd76eec0
commit 08e98b49c6
4 changed files with 118 additions and 62 deletions
+1 -1
View File
@@ -95,10 +95,10 @@ bool Debugger::attach_and_break() {
if (is_valid() && !m_attached) {
// reset and start the stop watcher
clear_signal_queue();
start_watcher();
// attach and send a break command
if (xdbg::attach_and_break(m_debug_context.tid)) {
start_watcher();
// wait for the signal queue to get a stop and pop it.
auto info = pop_signal();