All ptrace calls must originate from the one thread, and if that thread is the event-loop thread it can't change.
2007-04-17 Andrew Cagney <cagney@redhat.com> * TestBreakpoints.java (monitor): Delete. (TerminatingObserver.addFailed, CodeObserver.addedTo) (CodeObserver.deletedFrom): Replace "monitor" with call to EventLoop.requestStop. (GoAround): New class. (testHitAndRun, testInsertRemove, testAddLots): Delete call to EventLoop.start; use GoAround class. 2007-04-16 Andrew Cagney <cagney@redhat.com> * TestBreakpoints.java (setUp): Add the terminating observer. (TerminatingObserver.addedTo): Simplify, call eventLoop.requestStop. (terminating, exitSignal, exitValue): Move to TerminatingObserver. (terminatingObserver): Add. * TestBreakpoints.java (AttachedObserver.updateAttatched): Simplify, call eventLoop.requestStop. (AttatchedObserver.addedTo): Simplify, do nothing. (attatched): Delete. (setUp): Add the attatched observer. (attatchedObserver): Add. * TestBreakpoints.java: Make everything possible private. (setUp): Use assertRunUntilStop. (EventLoopRunner): Delete, has races. (AttatchedObserver.added, .isAdded) (TerminatingObserver.added, .isAdded): Delete. (AttatchedObserver.addFailed, TerminatingObserver.addFailed): Do not print stack backtrace when failing. (procTerminated): Delete unused.