Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for pctoline (0.15 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/cmd/internal/objfile/disasm.go

    			symEnd <= start || end <= symStart ||
    			filter != nil && !filter.MatchString(sym.Name) {
    			continue
    		}
    		if printed {
    			fmt.Fprintf(bw, "\n")
    		}
    		printed = true
    
    		file, _, _ := d.pcln.PCToLine(sym.Addr)
    		fmt.Fprintf(bw, "TEXT %s(SB) %s\n", sym.Name, file)
    
    		if symEnd > end {
    			symEnd = end
    		}
    		code := d.text[:end-d.textStart]
    
    		var lastFile string
    		var lastLine int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  4. 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)
  5. src/debug/gosym/symtab.go

    		case fn.Entry <= pc && pc < fn.End:
    			return fn
    		default:
    			funcs = funcs[m+1:]
    		}
    	}
    	return nil
    }
    
    // PCToLine looks up line number information for a program counter.
    // If there is no information, it returns fn == nil.
    func (t *Table) PCToLine(pc uint64) (file string, line int, fn *Func) {
    	if fn = t.PCToFunc(pc); fn == nil {
    		return
    	}
    	if t.go12line != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  6. src/debug/gosym/pclntab.go

    func (t *LineTable) slice(pc uint64) *LineTable {
    	data, pc, line := t.parse(pc, -1)
    	return &LineTable{Data: data, PC: pc, Line: line}
    }
    
    // PCToLine returns the line number for the given program counter.
    //
    // Deprecated: Use Table's PCToLine method instead.
    func (t *LineTable) PCToLine(pc uint64) int {
    	if t.isGo12() {
    		return t.go12PCToLine(pc)
    	}
    	_, _, line := t.parse(pc, -1)
    	return line
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/internal/obj/pcln.go

    	}
    
    	pcinlineState := new(pcinlineState)
    	pcln.Pcinline = funcpctab(ctxt, cursym, "pctoinline", pcinlineState.pctoinline, nil)
    	for _, inlMark := range fn.InlMarks {
    		pcinlineState.setParentPC(ctxt, int(inlMark.id), int32(inlMark.p.Pc))
    	}
    	pcln.InlTree = pcinlineState.localTree
    	if ctxt.Debugpcln == "pctoinline" && len(pcln.InlTree.nodes) > 0 {
    		ctxt.Logf("-- inlining tree for %s:\n", cursym)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/objfile.go

    		}
    		if fn.Pcln.Pcfile != nil && fn.Pcln.Pcfile.Size != 0 {
    			w.aux1(goobj.AuxPcfile, fn.Pcln.Pcfile)
    		}
    		if fn.Pcln.Pcline != nil && fn.Pcln.Pcline.Size != 0 {
    			w.aux1(goobj.AuxPcline, fn.Pcln.Pcline)
    		}
    		if fn.Pcln.Pcinline != nil && fn.Pcln.Pcinline.Size != 0 {
    			w.aux1(goobj.AuxPcinline, fn.Pcln.Pcinline)
    		}
    		if fn.sehUnwindInfoSym != nil && fn.sehUnwindInfoSym.Size != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top