Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for go12Funcs (0.36 sec)

  1. src/debug/gosym/pclntab.go

    		t.filetab = t.Data[fileoff:]
    		t.nfiletab = t.binary.Uint32(t.filetab)
    		t.filetab = t.filetab[:t.nfiletab*4]
    	default:
    		panic("unreachable")
    	}
    }
    
    // go12Funcs returns a slice of Funcs derived from the Go 1.2+ pcln table.
    func (t *LineTable) go12Funcs() []Func {
    	// Assume it is malformed and return nil on error.
    	if !disableRecover {
    		defer func() {
    			recover()
    		}()
    	}
    
    	ft := t.funcTab()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. src/debug/gosym/symtab.go

    					n := len(fn.Locals)
    					fn.Locals = fn.Locals[0 : n+1]
    					fn.Locals[n] = s
    				}
    			}
    			i = end - 1 // loop will i++
    		}
    	}
    
    	if t.go12line != nil && nf == 0 {
    		t.Funcs = t.go12line.go12Funcs()
    	}
    	if obj != nil {
    		obj.Funcs = t.Funcs[lastf:]
    	}
    	return &t, nil
    }
    
    // PCToFunc returns the function containing the program counter pc,
    // or nil if there is no such function.
    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