MCPcopy Create free account
hub / github.com/google/pprof / addr2Liner

Struct addr2Liner

internal/binutils/addr2liner.go:39–50  ·  view source on GitHub ↗

addr2Liner is a connection to an addr2line command for obtaining address and line number information from a binary.

Source from the content-addressed store, hash-verified

37// addr2Liner is a connection to an addr2line command for obtaining
38// address and line number information from a binary.
39type addr2Liner struct {
40 mu sync.Mutex
41 rw lineReaderWriter
42 base uint64
43
44 // nm holds an addr2Liner using nm tool. Certain versions of addr2line
45 // produce incomplete names due to
46 // https://sourceware.org/bugzilla/show_bug.cgi?id=17541. As a workaround,
47 // the names from nm are used when they look more complete. See addrInfo()
48 // code below for the exact heuristic.
49 nm *addr2LinerNM
50}
51
52// lineReaderWriter is an interface to abstract the I/O to an addr2line
53// process. It writes a line of input to the job, and reads its output

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected