Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for pctoline (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/link/internal/ld/pcln.go

    			size += datSize
    			seen[pcSym] = struct{}{}
    		}
    	}
    	var pcsp, pcline, pcfile, pcinline loader.Sym
    	var pcdata []loader.Sym
    	for _, s := range funcs {
    		fi := ldr.FuncInfo(s)
    		if !fi.Valid() {
    			continue
    		}
    		fi.Preload()
    		pcsp, pcfile, pcline, pcinline, pcdata = ldr.PcdataAuxs(s, pcdata)
    
    		pcSyms := []loader.Sym{pcsp, pcfile, pcline}
    		for _, pcSym := range pcSyms {
    			saveOffset(pcSym)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/sym.go

    					fnNoNil(v.dwarfInfoSym)
    				}
    			}
    			if flag&traversePcdata != 0 && s.Type == objabi.STEXT {
    				fi := s.Func().Pcln
    				fnNoNil(fi.Pcsp)
    				fnNoNil(fi.Pcfile)
    				fnNoNil(fi.Pcline)
    				fnNoNil(fi.Pcinline)
    				for _, d := range fi.Pcdata {
    					fnNoNil(d)
    				}
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/shell.go

    	// Replace *[100]_Ctype_foo with *[100]C.foo.
    	// If we're using -x, assume we're debugging and want the full dump, so disable the rewrite.
    	if !cfg.BuildX && cgoLine.MatchString(out) {
    		out = cgoLine.ReplaceAllString(out, "")
    		out = cgoTypeSigRe.ReplaceAllString(out, "C.")
    	}
    
    	// Usually desc is already p.Desc(), but if not, signal cmdError.Error to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/link.go

    func (*LSym) CanBeAnSSASym() {}
    func (*LSym) CanBeAnSSAAux() {}
    
    type Pcln struct {
    	// Aux symbols for pcln
    	Pcsp      *LSym
    	Pcfile    *LSym
    	Pcline    *LSym
    	Pcinline  *LSym
    	Pcdata    []*LSym
    	Funcdata  []*LSym
    	UsedFiles map[goobj.CUFileIndex]struct{} // file indices used while generating pcfile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top