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