GP-909: Adjusting how GDB resumes/steps to assure interrupts work.

This commit is contained in:
Dan
2021-04-29 15:20:46 -04:00
parent c70496680d
commit b150c557fc
24 changed files with 210 additions and 144 deletions

View File

@@ -324,7 +324,7 @@ public abstract class AbstractDebuggerModelTest extends AbstractGhidraHeadedInte
assertEquals(TargetExecutionState.RUNNING, stateful.getExecutionState());
}, List.of(AssertionError.class));
}
// NB. Never have to wait to interrupt. (Hmmmm, do we believe this?)
// NB. Never have to waitAcc to interrupt. It's likely inaccessible, anyway.
waitOn(interruptible.interrupt());
if (stateful != null) {
retryVoid(() -> {

View File

@@ -60,7 +60,9 @@ public class DummyProc implements AutoCloseable {
DummyProc(String... args) throws IOException {
args[0] = which(args[0]);
process = new ProcessBuilder(args).start();
process = new ProcessBuilder(args)
.inheritIO()
.start();
pid = process.pid();
}