diff options
| author | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
| commit | 90564a92565877d19e456694ac4e2ef205720432 (patch) | |
| tree | 8cb7e9ba936b3721ed7e3120e95fa419859ea20f /src/pkg/debug | |
| parent | 58e19aa4cb8656cdb757172647dfcb028029185e (diff) | |
| download | go-90564a92565877d19e456694ac4e2ef205720432.tar.xz | |
go/printer: changed max. number of newlines from 3 to 2
manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go
(cd src/cmd/gofix/testdata; gofmt -w *.in *.out)
(cd src/pkg/go/printer; gotest -update)
gofmt -w misc src
runs all tests
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4715041
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/dwarf/type_test.go | 1 | ||||
| -rw-r--r-- | src/pkg/debug/elf/elf.go | 2 | ||||
| -rw-r--r-- | src/pkg/debug/pe/file.go | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/src/pkg/debug/dwarf/type_test.go b/src/pkg/debug/dwarf/type_test.go index e01f7353a4..b9470a4fcb 100644 --- a/src/pkg/debug/dwarf/type_test.go +++ b/src/pkg/debug/dwarf/type_test.go @@ -58,7 +58,6 @@ func machoData(t *testing.T, name string) *Data { return d } - func TestTypedefsELF(t *testing.T) { testTypedefs(t, elfData(t, "testdata/typedef.elf")) } func TestTypedefsMachO(t *testing.T) { diff --git a/src/pkg/debug/elf/elf.go b/src/pkg/debug/elf/elf.go index 5d45b24863..c71b230bd9 100644 --- a/src/pkg/debug/elf/elf.go +++ b/src/pkg/debug/elf/elf.go @@ -1289,7 +1289,6 @@ func (i R_SPARC) GoString() string { return stringName(uint32(i), rsparcStrings, // Magic number for the elf trampoline, chosen wisely to be an immediate value. const ARM_MAGIC_TRAMP_NUMBER = 0x5c000003 - // ELF32 File header. type Header32 struct { Ident [EI_NIDENT]byte /* File identification. */ @@ -1455,7 +1454,6 @@ func R_SYM64(info uint64) uint32 { return uint32(info >> 32) } func R_TYPE64(info uint64) uint32 { return uint32(info) } func R_INFO(sym, typ uint32) uint64 { return uint64(sym)<<32 | uint64(typ) } - // ELF64 symbol table entries. type Sym64 struct { Name uint32 /* String table index of name. */ diff --git a/src/pkg/debug/pe/file.go b/src/pkg/debug/pe/file.go index c934dd4477..d86d916f50 100644 --- a/src/pkg/debug/pe/file.go +++ b/src/pkg/debug/pe/file.go @@ -35,7 +35,6 @@ type SectionHeader struct { Characteristics uint32 } - type Section struct { SectionHeader @@ -69,7 +68,6 @@ func (s *Section) Data() ([]byte, os.Error) { // Open returns a new ReadSeeker reading the PE section. func (s *Section) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) } - type FormatError struct { off int64 msg string |
