Skip to content

Commit

Permalink
vendor: update vendored packages (go-delve#791)
Browse files Browse the repository at this point in the history
* pkg/proc: use golang.org/x/arch/x86/x86asm

instead of rsc.io/x86/x86asm

* pkg/dwarf: migrate to github.com/pkg/profile

from github.com/davecheney/profile

* scripts: keep script go files from being considered for the build

scripts/gen-*.go files are scripts for generating documentation
files and don't follow the typical Go package layout. Expected
usage is like

   go run scripts/gen-cli-docs.go

* vendor: update vendored packages

There were many changes in delve, and go tool chains since last
vendored package update. I just rerun godpes from scratch.

$ rm vendor/*
$ rm Godeps/Godeps.json
$ go list ./... | grep -v /vendor/ | grep -v /scripts/ | go get -u -t
$ go get -u github.com/mattn/go-colorable
$ go get -u github.com/mattn/go-isatty
$ go list ./... | grep -v /vendor/ | grep -v /scripts/ | godeps save
  • Loading branch information
hyangah authored and derekparker committed Apr 17, 2017
1 parent b5a06f7 commit 5bd46f3
Show file tree
Hide file tree
Showing 248 changed files with 37,857 additions and 14,890 deletions.
77 changes: 32 additions & 45 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/dwarf/frame/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"testing"

"github.com/davecheney/profile"
"github.com/derekparker/delve/pkg/dwarf/frame"
"github.com/pkg/profile"
)

func BenchmarkParse(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/dwarf/line/line_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/davecheney/profile"
"github.com/pkg/profile"
)

func grabDebugLineSection(p string, t *testing.T) []byte {
Expand Down
2 changes: 1 addition & 1 deletion pkg/proc/disasm_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"debug/gosym"
"encoding/binary"

"rsc.io/x86/x86asm"
"golang.org/x/arch/x86/x86asm"
)

var maxInstructionLength uint64 = 15
Expand Down
3 changes: 2 additions & 1 deletion pkg/proc/registers_darwin_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import "C"
import (
"encoding/binary"
"fmt"
"rsc.io/x86/x86asm"
"unsafe"

"golang.org/x/arch/x86/x86asm"
)

// Regs represents CPU registers on an AMD64 processor.
Expand Down
3 changes: 1 addition & 2 deletions pkg/proc/registers_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ package proc
import (
"fmt"

"rsc.io/x86/x86asm"

"golang.org/x/arch/x86/x86asm"
sys "golang.org/x/sys/unix"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/proc/registers_windows_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package proc

import (
"fmt"
"rsc.io/x86/x86asm"
"unsafe"

"golang.org/x/arch/x86/x86asm"
)

// Regs represents CPU registers on an AMD64 processor.
Expand Down
2 changes: 2 additions & 0 deletions scripts/gen-cli-docs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions scripts/gen-usage-docs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

package main

import (
Expand Down
21 changes: 0 additions & 21 deletions vendor/github.com/cpuguy83/go-md2man/LICENSE.md

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go

This file was deleted.

Loading

0 comments on commit 5bd46f3

Please sign in to comment.