提交 1ce255ff 编写于 作者: D Derek Parker

Remove any printing from core proc package

Also, reorganizes some code.

Initially, the `proc` package emitted a lot of output. Now, that should
not be the case. The `proc` package should never print, for any reason.
That should be handled by clients.
上级 c8e4fcc2
......@@ -412,8 +412,7 @@ func (dbp *Process) Step() (err error) {
if th.blocked() {
continue
}
err := th.Step()
if err != nil {
if err := th.Step(); err != nil {
return err
}
}
......@@ -426,7 +425,6 @@ func (dbp *Process) Step() (err error) {
// Change from current thread to the thread specified by `tid`.
func (dbp *Process) SwitchThread(tid int) error {
if th, ok := dbp.Threads[tid]; ok {
fmt.Printf("thread context changed from %d to %d\n", dbp.CurrentThread.Id, tid)
dbp.CurrentThread = th
return nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册