Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for alineFromLine (0.32 sec)

  1. src/debug/gosym/pclntab_test.go

    		// aline's don't exist in the Go 1.2 table.
    		t.Skip("not relevant to Go 1.2 symbol table")
    	}
    
    	for _, o := range tab.Files {
    		// A source file can appear multiple times in a
    		// object.  alineFromLine will always return alines in
    		// the first file, so track which lines we've seen.
    		found := make(map[string]int)
    		for i := 0; i < 1000; i++ {
    			path, line := o.lineFromAline(i)
    			if path == "" {
    				break
    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 t.go12line != nil {
    		pc := t.go12line.go12LineToPC(file, line)
    		if pc == 0 {
    			return 0, nil, &UnknownLineError{file, line}
    		}
    		return pc, t.PCToFunc(pc), nil
    	}
    
    	abs, err := obj.alineFromLine(file, line)
    	if err != nil {
    		return
    	}
    	for i := range obj.Funcs {
    		f := &obj.Funcs[i]
    		pc := f.LineTable.LineToPC(abs, f.End)
    		if pc != 0 {
    			return pc, f, 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)
Back to top