parent
690e3fff3f
commit
00e473157a
@ -577,7 +577,7 @@ func (p *Process) ContinueOnce() (proc.Thread, error) {
|
||||
var err error
|
||||
continueLoop:
|
||||
for {
|
||||
tu.done = false
|
||||
tu.Reset()
|
||||
threadID, sig, err = p.conn.resume(sig, &tu)
|
||||
if err != nil {
|
||||
if _, exited := err.(proc.ProcessExitedError); exited {
|
||||
@ -981,6 +981,11 @@ type threadUpdater struct {
|
||||
done bool
|
||||
}
|
||||
|
||||
func (tu *threadUpdater) Reset() {
|
||||
tu.done = false
|
||||
tu.seen = nil
|
||||
}
|
||||
|
||||
func (tu *threadUpdater) Add(threads []string) error {
|
||||
if tu.done {
|
||||
panic("threadUpdater: Add after Finish")
|
||||
|
Loading…
Reference in New Issue
Block a user