Initial refactor of source package

Major source cleanup, still not finished. Removes gross control flow.
This commit is contained in:
Derek Parker
2015-07-09 13:06:30 -05:00
parent 4aad37b69c
commit a99a37f397
3 changed files with 222 additions and 234 deletions

View File

@ -1,8 +1,6 @@
package proc
import (
"encoding/binary"
)
import "encoding/binary"
// Takes an offset from RSP and returns the address of the
// instruction the currect function is going to return to.
@ -78,7 +76,6 @@ func (dbp *Process) stacktrace(pc, sp uint64, depth int) ([]Location, error) {
if fn != nil && fn.Name == "runtime.goexit" {
break
}
}
return locations, nil
}