debug: golang.org/x/debug/arch Index | Files

package arch

import "golang.org/x/debug/arch"

Package arch contains architecture-specific definitions.

Index

Package Files

arch.go

Constants

const MaxBreakpointSize = 4 // TODO

Variables

var AMD64 = Architecture{
    BreakpointSize:  1,
    IntSize:         8,
    PointerSize:     8,
    ByteOrder:       binary.LittleEndian,
    FloatByteOrder:  binary.LittleEndian,
    BreakpointInstr: [MaxBreakpointSize]byte{0xCC},
}
var ARM = Architecture{
    BreakpointSize:  4,
    IntSize:         4,
    PointerSize:     4,
    ByteOrder:       binary.LittleEndian,
    FloatByteOrder:  binary.LittleEndian,
    BreakpointInstr: [MaxBreakpointSize]byte{0x00, 0x00, 0x00, 0x00},
}
var X86 = Architecture{
    BreakpointSize:  1,
    IntSize:         4,
    PointerSize:     4,
    ByteOrder:       binary.LittleEndian,
    FloatByteOrder:  binary.LittleEndian,
    BreakpointInstr: [MaxBreakpointSize]byte{0xCC},
}

type Architecture Uses

type Architecture struct {
    // BreakpointSize is the size of a breakpoint instruction, in bytes.
    BreakpointSize int
    // IntSize is the size of the int type, in bytes.
    IntSize int
    // PointerSize is the size of a pointer, in bytes.
    PointerSize int
    // ByteOrder is the byte order for ints and pointers.
    ByteOrder binary.ByteOrder
    // FloatByteOrder is the byte order for floats.
    FloatByteOrder  binary.ByteOrder
    BreakpointInstr [MaxBreakpointSize]byte
}

Architecture defines the architecture-specific details for a given machine.

func (*Architecture) Complex128 Uses

func (a *Architecture) Complex128(buf []byte) complex128

func (*Architecture) Complex64 Uses

func (a *Architecture) Complex64(buf []byte) complex64

func (*Architecture) Float32 Uses

func (a *Architecture) Float32(buf []byte) float32

func (*Architecture) Float64 Uses

func (a *Architecture) Float64(buf []byte) float64

func (*Architecture) Int Uses

func (a *Architecture) Int(buf []byte) int64

func (*Architecture) Int16 Uses

func (a *Architecture) Int16(buf []byte) int16

func (*Architecture) Int32 Uses

func (a *Architecture) Int32(buf []byte) int32

func (*Architecture) Int64 Uses

func (a *Architecture) Int64(buf []byte) int64

func (*Architecture) IntN Uses

func (a *Architecture) IntN(buf []byte) int64

func (*Architecture) Uint Uses

func (a *Architecture) Uint(buf []byte) uint64

func (*Architecture) Uint16 Uses

func (a *Architecture) Uint16(buf []byte) uint16

func (*Architecture) Uint32 Uses

func (a *Architecture) Uint32(buf []byte) uint32

func (*Architecture) Uint64 Uses

func (a *Architecture) Uint64(buf []byte) uint64

func (*Architecture) UintN Uses

func (a *Architecture) UintN(buf []byte) uint64

func (*Architecture) Uintptr Uses

func (a *Architecture) Uintptr(buf []byte) uint64

Package arch imports 2 packages (graph) and is imported by 1 packages. Updated 2017-09-09. Refresh now. Tools for package owners.