go-delve/delve · error
eBPF is not supported
Error message
eBPF is not supported
What it means
Error "eBPF is not supported" thrown in go-delve/delve.
Source
Thrown at pkg/proc/breakpoints.go:575
return BreakpointMap{
M: make(map[uint64]*Breakpoint),
}
}
// SetBreakpoint sets a breakpoint at addr, and stores it in the process wide
// break point table.
func (t *Target) SetBreakpoint(logicalID int, addr uint64, kind BreakpointKind, cond ast.Expr) (*Breakpoint, error) {
return t.setBreakpointInternal(logicalID, addr, kind, 0, cond)
}
// SetEBPFTracepoint will attach a uprobe to the function
// specified by 'fnName'.
func (t *Target) SetEBPFTracepoint(fnName string) error {
// Not every OS/arch that we support has support for eBPF,
// so check early and return an error if this is called on an
// unsupported system.
if !t.proc.SupportsBPF() {
return errors.New("eBPF is not supported")
}
fns, err := t.BinInfo().FindFunction(fnName)
if err != nil {
return err
}
// Get information on the Goroutine so we can tell the
// eBPF program where to find it in order to get the
// goroutine ID.
rdr := t.BinInfo().Images[0].DwarfReader()
rdr.SeekToTypeNamed("runtime.g")
typ, err := t.BinInfo().findType("runtime.g")
if err != nil {
return errors.New("could not find type for runtime.g")
}
var goidOffset int64
switch t := typ.(type) {
case *godwarf.StructType:View on GitHub (pinned to a23773e6c3)
When it happens
Trigger: Thrown at pkg/proc/breakpoints.go:575 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of go-delve/delve@a23773e6c3 (2026-08-31).
Data as JSON: /api/errors/cf650b205be98c54.
Report an issue: GitHub.