Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LineToPC (0.14 sec)

  1. src/debug/gosym/pclntab_test.go

    				b.Fatal(err)
    			}
    		}
    	})
    
    	tab, err := NewTable(nil, pcln)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	b.Run("LineToPC", func(b *testing.B) {
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			var f *Func
    			var pc uint64
    			pc, f, err = tab.LineToPC("/tmp/hello.go", 3)
    			if err != nil {
    				b.Fatal(err)
    			}
    			if pcln.version != ver12 {
    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/debug/gosym/symtab.go

    	} else {
    		file, line = fn.Obj.lineFromAline(fn.LineTable.PCToLine(pc))
    	}
    	return
    }
    
    // LineToPC looks up the first program counter on the given line in
    // the named file. It returns [UnknownFileError] or [UnknownLineError] if
    // there is an error looking up this line.
    func (t *Table) LineToPC(file string, line int) (pc uint64, fn *Func, err error) {
    	obj, ok := t.Files[file]
    	if !ok {
    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

    	if t.isGo12() {
    		return t.go12PCToLine(pc)
    	}
    	_, _, line := t.parse(pc, -1)
    	return line
    }
    
    // LineToPC returns the program counter for the given line number,
    // considering only program counters before maxpc.
    //
    // Deprecated: Use Table's LineToPC method instead.
    func (t *LineTable) LineToPC(line int, maxpc uint64) uint64 {
    	if t.isGo12() {
    		return 0
    	}
    	_, pc, line1 := t.parse(maxpc, 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/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    	},
    	"debug/gosym": {
    		{"(*DecodingError).Error", Method, 0},
    		{"(*LineTable).LineToPC", Method, 0},
    		{"(*LineTable).PCToLine", Method, 0},
    		{"(*Sym).BaseName", Method, 0},
    		{"(*Sym).PackageName", Method, 0},
    		{"(*Sym).ReceiverName", Method, 0},
    		{"(*Sym).Static", Method, 0},
    		{"(*Table).LineToPC", Method, 0},
    		{"(*Table).LookupFunc", Method, 0},
    		{"(*Table).LookupSym", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.16.txt

    pkg database/sql/driver, type Queryer //deprecated
    pkg database/sql/driver, type Stmt interface, Exec //deprecated
    pkg database/sql/driver, type Stmt interface, Query //deprecated
    pkg debug/gosym, method (*LineTable) LineToPC //deprecated
    pkg debug/gosym, method (*LineTable) PCToLine //deprecated
    pkg encoding/csv, type Reader struct, TrailingComma //deprecated
    pkg encoding/csv, var ErrTrailingComma //deprecated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg debug/gosym, method (*LineTable) LineToPC(int, uint64) uint64
    pkg debug/gosym, method (*LineTable) PCToLine(uint64) int
    pkg debug/gosym, method (*Sym) BaseName() string
    pkg debug/gosym, method (*Sym) PackageName() string
    pkg debug/gosym, method (*Sym) ReceiverName() string
    pkg debug/gosym, method (*Sym) Static() bool
    pkg debug/gosym, method (*Table) LineToPC(string, int) (uint64, *Func, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top