aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/symbolizer/symbolizer.go
blob: e3625d3136c380b1a75c5600697dd705c80cb092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2025 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

package symbolizer

import "github.com/google/syzkaller/sys/targets"

type Frame struct {
	PC     uint64
	Func   string
	File   string
	Line   int
	Inline bool
}

type Symbolizer interface {
	Symbolize(bin string, pcs ...uint64) ([]Frame, error)
	Close()
}

func Make(target *targets.Target) Symbolizer {
	return &addr2Line{target: target}
}