Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lineFromAline (0.21 sec)

  1. src/debug/gosym/pclntab_test.go

    	}
    
    	// Walk every absolute line and ensure that we hit every
    	// source line monotonically
    	lastline := make(map[string]int)
    	final := -1
    	for i := 0; i < 10000; i++ {
    		path, line := pkg.lineFromAline(i)
    		// Check for end of object
    		if path == "" {
    			if final == -1 {
    				final = i - 1
    			}
    			continue
    		} else if final != -1 {
    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

    	if fn = t.PCToFunc(pc); fn == nil {
    		return
    	}
    	if t.go12line != nil {
    		file = t.go12line.go12PCToFile(pc)
    		line = t.go12line.go12PCToLine(pc)
    	} 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
Back to top