[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
This commit is contained in:
Andrew Gerrand 2014-11-17 12:56:35 +11:00
parent 335ad3db99
commit c1fc059b08
14 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@
package objfile
import (
"debug/goobj"
"cmd/internal/goobj"
"fmt"
"os"
)

View File

@ -10,7 +10,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"strconv"
"strings"
)

View File

@ -13,7 +13,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"testing"
)

View File

@ -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

View File

@ -5,7 +5,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"reflect"
"strings"
"testing"

View File

@ -7,7 +7,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
)
// A layoutSection describes a single section to add to the

View File

@ -6,7 +6,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"io/ioutil"
"testing"
)

View File

@ -7,7 +7,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"encoding/binary"
"os"
"sort"

View File

@ -6,7 +6,7 @@ package main
import (
"bytes"
"debug/goobj"
"cmd/internal/goobj"
"fmt"
"math/rand"
"sort"

View File

@ -5,7 +5,7 @@
package main
import (
"debug/goobj"
"cmd/internal/goobj"
"encoding/binary"
"fmt"
"go/build"

View File

@ -7,7 +7,7 @@
package main
import "debug/goobj"
import "cmd/internal/goobj"
func (p *Prog) runtime() {
p.pclntab()

View File

@ -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