Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for pctoline (0.18 sec)

  1. src/debug/gosym/pclntab_test.go

    	}
    
    	// Test PCToLine
    	sym := tab.LookupFunc("main.linefrompc")
    	wantLine := 0
    	for pc := sym.Entry; pc < sym.End; pc++ {
    		off := pc - text.Addr // TODO(rsc): should not need off; bug in 8g
    		if textdat[off] == 255 {
    			break
    		}
    		wantLine += int(textdat[off])
    		t.Logf("off is %d %#x (max %d)", off, textdat[off], sym.End-pc)
    		file, line, fn := tab.PCToLine(pc)
    		if fn == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 17:17:44 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/flags/flags.go

    )
    
    var DebugFlags struct {
    	MayMoreStack string `help:"call named function before all stack growth checks"`
    	PCTab        string `help:"print named pc-value table\nOne of: pctospadj, pctofile, pctoline, pctoinline, pctopcdata"`
    }
    
    var (
    	D        MultiFlag
    	I        MultiFlag
    	PrintOut int
    	DebugV   bool
    )
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:23 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/debug/gosym/symtab_test.go

    	assertString(t, fmt.Sprintf("receiver of %q", s2.Name), s2.ReceiverName(), "")
    }
    
    func TestStandardLibPathPackage(t *testing.T) {
    	s1 := Sym{Name: "debug/gosym.(*LineTable).PCToLine"}
    	s2 := Sym{Name: "debug/gosym.NewTable"}
    	assertString(t, fmt.Sprintf("package of %q", s1.Name), s1.PackageName(), "debug/gosym")
    	assertString(t, fmt.Sprintf("package of %q", s2.Name), s2.PackageName(), "debug/gosym")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 11:28:56 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/internal/objfile/goobj.go

    				pcfileSym = a.Sym()
    			case goobj.AuxPcline:
    				pclineSym = a.Sym()
    			}
    		}
    		if pcfileSym.IsZero() || pclineSym.IsZero() {
    			continue
    		}
    		pcline := getSymData(pclineSym)
    		line := int(pcValue(pcline, pc-addr, f.arch))
    		pcfile := getSymData(pcfileSym)
    		fileID := pcValue(pcfile, pc-addr, f.arch)
    		fileName := r.File(int(fileID))
    		// Note: we provide only the name in the Func structure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/cmd/pprof/pprof.go

    	if f.pcln == nil {
    		pcln, err := f.file.PCLineTable()
    		if err != nil {
    			return nil, err
    		}
    		f.pcln = pcln
    	}
    	addr -= f.offset
    	file, line, fn := f.pcln.PCToLine(addr)
    	if fn != nil {
    		frame := []driver.Frame{
    			{
    				Func: fn.Name,
    				File: file,
    				Line: line,
    			},
    		}
    		return frame, nil
    	}
    
    	frames := f.dwarfSourceLine(addr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/runtime/debug/mod.go

    	// Reverse of BuildInfo.String(), except for go version.
    	for len(data) > 0 {
    		line, data, ok = strings.Cut(data, newline)
    		if !ok {
    			break
    		}
    		switch {
    		case strings.HasPrefix(line, pathLine):
    			elem := line[len(pathLine):]
    			bi.Path = string(elem)
    		case strings.HasPrefix(line, modLine):
    			elem := strings.Split(line[len(modLine):], tab)
    			last = &bi.Main
    			*last, err = readModuleLine(elem)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top