Commit c1fc059b authored by Andrew Gerrand's avatar Andrew Gerrand

[release-branch.go1.4] debug/goobj: move to cmd/internal/goobj

««« CL 174250043 / c16349455e05
debug/goobj: move to cmd/internal/goobj

debug/goobj is not ready to be published but it is
needed for the various binary-reading commands.
Move to cmd/internal/goobj.

(The Go 1.3 release branch deleted it, but that's not
an option anymore due to the command dependencies.
The API is still not vetted nor terribly well designed.)

LGTM=adg, dsymonds
R=adg, dsymonds
CC=golang-codereviews
https://golang.org/cl/174250043
»»»

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/177890043
parent 335ad3db
......@@ -7,7 +7,7 @@
package objfile
import (
"debug/goobj"
"cmd/internal/goobj"
"fmt"
"os"
)
......
......@@ -10,7 +10,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"strconv"
"strings"
)
......
......@@ -13,7 +13,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"testing"
)
......
......@@ -6,7 +6,7 @@
package main
import "debug/goobj"
import "cmd/internal/goobj"
// dead removes unreachable code and data from the program.
// It is basically a mark-sweep garbage collection: traverse all the
......
......@@ -5,7 +5,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"reflect"
"strings"
"testing"
......
......@@ -7,7 +7,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
)
// A layoutSection describes a single section to add to the
......
......@@ -6,7 +6,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"io/ioutil"
"testing"
)
......
......@@ -7,7 +7,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"encoding/binary"
"os"
"sort"
......
......@@ -6,7 +6,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"fmt"
"math/rand"
"sort"
......
......@@ -5,7 +5,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"encoding/binary"
"fmt"
"go/build"
......
......@@ -7,7 +7,7 @@
package main
import "debug/goobj"
import "cmd/internal/goobj"
func (p *Prog) runtime() {
p.pclntab()
......
......@@ -11,7 +11,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"os"
"sort"
"strings"
......@@ -69,7 +69,7 @@ func (p *Prog) scanFile(pkgpath string, file string) {
return
}
// TODO(rsc): Change debug/goobj to record package name as gp.Name.
// TODO(rsc): Change cmd/internal/goobj to record package name as gp.Name.
// TODO(rsc): If pkgpath == "main", check that gp.Name == "main".
pkg.Package = gp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment