fmt code (#2826)
This commit is contained in:
parent
d514b4c6e9
commit
3d334e4a5b
@ -93,7 +93,7 @@ func LoadTree(off dwarf.Offset, dw *dwarf.Data, staticBase uint64) (*Tree, error
|
|||||||
// EntryToTree converts a single entry, without children, to a *Tree object.
|
// EntryToTree converts a single entry, without children, to a *Tree object.
|
||||||
func EntryToTree(entry *dwarf.Entry) *Tree {
|
func EntryToTree(entry *dwarf.Entry) *Tree {
|
||||||
if entry.Children {
|
if entry.Children {
|
||||||
panic(fmt.Sprintf("EntryToTree called on entry with children; " +
|
panic(fmt.Sprintf("EntryToTree called on entry with children; "+
|
||||||
"LoadTree should have been used instead. entry: %+v", entry))
|
"LoadTree should have been used instead. entry: %+v", entry))
|
||||||
}
|
}
|
||||||
return entryToTreeInternal(entry)
|
return entryToTreeInternal(entry)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build !amd64
|
//go:build !amd64
|
||||||
|
// +build !amd64
|
||||||
|
|
||||||
package amd64util
|
package amd64util
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build linux || darwin || freebsd
|
||||||
// +build linux darwin freebsd
|
// +build linux darwin freebsd
|
||||||
|
|
||||||
package gdbserial
|
package gdbserial
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !darwin
|
||||||
// +build !darwin
|
// +build !darwin
|
||||||
|
|
||||||
package macutil
|
package macutil
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build linux,!amd64
|
//go:build linux && !amd64
|
||||||
|
// +build linux,!amd64
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build freebsd,amd64 darwin
|
//go:build (freebsd && amd64) || darwin
|
||||||
|
// +build freebsd,amd64 darwin
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build darwin,macnative
|
//go:build darwin && macnative
|
||||||
|
// +build darwin,macnative
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build (linux && amd64) || (linux && arm64)
|
||||||
// +build linux,amd64 linux,arm64
|
// +build linux,amd64 linux,arm64
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build darwin,macnative
|
//go:build darwin && macnative
|
||||||
|
// +build darwin,macnative
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// This file is used to detect build on unsupported GOOS/GOARCH combinations.
|
// This file is used to detect build on unsupported GOOS/GOARCH combinations.
|
||||||
|
|
||||||
//+build !linux,!darwin,!windows,!freebsd linux,!amd64,!arm64,!386 darwin,!amd64,!arm64 windows,!amd64 freebsd,!amd64
|
//go:build (!linux && !darwin && !windows && !freebsd) || (linux && !amd64 && !arm64 && !386) || (darwin && !amd64 && !arm64) || (windows && !amd64) || (freebsd && !amd64)
|
||||||
|
// +build !linux,!darwin,!windows,!freebsd linux,!amd64,!arm64,!386 darwin,!amd64,!arm64 windows,!amd64 freebsd,!amd64
|
||||||
|
|
||||||
package your_operating_system_and_architecture_combination_is_not_supported_by_delve
|
package your_operating_system_and_architecture_combination_is_not_supported_by_delve
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build darwin,macnative
|
//go:build darwin && macnative
|
||||||
|
// +build darwin,macnative
|
||||||
|
|
||||||
package native
|
package native
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package terminal
|
package terminal
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build go1.12
|
||||||
// +build go1.12
|
// +build go1.12
|
||||||
|
|
||||||
package version
|
package version
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package debugger
|
package debugger
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !windows
|
||||||
// +build !windows
|
// +build !windows
|
||||||
|
|
||||||
package debugger
|
package debugger
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build !linux
|
//go:build !linux
|
||||||
|
// +build !linux
|
||||||
|
|
||||||
package sameuser
|
package sameuser
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//+build linux
|
//go:build linux
|
||||||
|
// +build linux
|
||||||
|
|
||||||
package sameuser
|
package sameuser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user