Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 146 for dwarf (0.06 sec)

  1. src/cmd/go/testdata/script/build_trimpath_cgo.txt

    	return sortedFiles, nil
    }
    -- list-dwarf/read_darwin.go --
    package main
    
    import (
    	"debug/dwarf"
    	"debug/macho"
    )
    
    func readDWARF(exePath string) (*dwarf.Data, error) {
    	machoFile, err := macho.Open(exePath)
    	if err != nil {
    		return nil, err
    	}
    	defer machoFile.Close()
    	return machoFile.DWARF()
    }
    -- list-dwarf/read_elf.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/pprof/pprof.go

    }
    
    // dwarfSourceLine tries to get file/line information using DWARF.
    // This is for C functions that appear in the profile.
    // Returns nil if there is no information available.
    func (f *file) dwarfSourceLine(addr uint64) []driver.Frame {
    	if f.dwarf == nil && !f.triedDwarf {
    		// Ignore any error--we don't care exactly why there
    		// is no DWARF info.
    		f.dwarf, _ = f.file.DWARF()
    		f.triedDwarf = true
    	}
    
    	if f.dwarf != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/dwtest/dwtest.go

    // for future test writing.
    
    type Examiner struct {
    	dies        []*dwarf.Entry
    	idxByOffset map[dwarf.Offset]int
    	kids        map[int][]int
    	parent      map[int]int
    	byname      map[string][]int
    }
    
    // Populate the Examiner using the DIEs read from rdr.
    func (ex *Examiner) Populate(rdr *dwarf.Reader) error {
    	ex.idxByOffset = make(map[dwarf.Offset]int)
    	ex.kids = make(map[int][]int)
    	ex.parent = make(map[int]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 15:22:18 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		}
    		if t.Align = t.Size; t.Align >= c.ptrSize {
    			t.Align = c.ptrSize
    		}
    
    	case *dwarf.VoidType:
    		t.Go = c.goVoid
    		t.C.Set("void")
    		t.Align = 1
    	}
    
    	switch dtype.(type) {
    	case *dwarf.AddrType, *dwarf.BoolType, *dwarf.CharType, *dwarf.ComplexType, *dwarf.IntType, *dwarf.FloatType, *dwarf.UcharType, *dwarf.UintType:
    		s := dtype.Common().Name
    		if s != "" {
    			if ss, ok := dwarfToName[s]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  5. src/debug/dwarf/entry.go

    // DWARF 4 class. For example, DWARF 2 uses "constant" for constants
    // as well as all types of section offsets, but the reader will
    // canonicalize attributes in DWARF 2 files that refer to section
    // offsets to one of the Class*Ptr classes, even though these classes
    // were only defined in DWARF 3.
    type Class int
    
    const (
    	// ClassUnknown represents values of unknown DWARF class.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 30.7K bytes
    - Viewed (0)
  6. src/debug/dwarf/buf.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Buffered reading and decoding of DWARF data streams.
    
    package dwarf
    
    import (
    	"bytes"
    	"encoding/binary"
    	"strconv"
    )
    
    // Data buffer being decoded.
    type buf struct {
    	dwarf  *Data
    	order  binary.ByteOrder
    	format dataFormat
    	name   string
    	off    Offset
    	data   []byte
    	err    error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 21 17:14:08 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. src/debug/dwarf/line.go

    	if opcode >= r.opcodeBase {
    		// Special opcode [DWARF2 6.2.5.1, DWARF4 6.2.5.1]
    		adjustedOpcode := opcode - r.opcodeBase
    		r.advancePC(adjustedOpcode / r.lineRange)
    		lineDelta := r.lineBase + adjustedOpcode%r.lineRange
    		r.state.Line += lineDelta
    		goto emit
    	}
    
    	switch opcode {
    	case 0:
    		// Extended opcode [DWARF2 6.2.5.3]
    		length := Offset(r.buf.uint())
    		startOff := r.buf.off
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  8. src/debug/dwarf/const.go

    	AttrDefaulted            Attr = 0x8B
    	AttrLoclistsBase         Attr = 0x8C
    )
    
    func (a Attr) GoString() string {
    	if str, ok := _Attr_map[a]; ok {
    		return "dwarf.Attr" + str
    	}
    	return "dwarf." + a.String()
    }
    
    // A format is a DWARF data encoding format.
    type format uint32
    
    const (
    	// value formats
    	formAddr        format = 0x01
    	formDwarfBlock2 format = 0x03
    	formDwarfBlock4 format = 0x04
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  9. api/go1.5.txt

    pkg debug/dwarf, const ClassLinePtr = 6
    pkg debug/dwarf, const ClassLinePtr Class
    pkg debug/dwarf, const ClassLocListPtr = 7
    pkg debug/dwarf, const ClassLocListPtr Class
    pkg debug/dwarf, const ClassMacPtr = 8
    pkg debug/dwarf, const ClassMacPtr Class
    pkg debug/dwarf, const ClassRangeListPtr = 9
    pkg debug/dwarf, const ClassRangeListPtr Class
    pkg debug/dwarf, const ClassReference = 10
    pkg debug/dwarf, const ClassReference Class
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go

    		os.Exit(1)
    	}
    
    	data, err := exe.DWARF()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "%s: error opening DWARF: %v\n", exePath, err)
    		os.Exit(1)
    	}
    
    	rdr := data.Reader()
    	for {
    		e, err := rdr.Next()
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "%s: error reading DWARF: %v\n", exePath, err)
    			os.Exit(1)
    		}
    		if e == nil {
    			break
    		}
    		name, hasname := e.Val(dwarf.AttrName).(string)
    		if !hasname {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top