addr2Liner is a connection to an addr2line command for obtaining address and line number information from a binary.
| 37 | // addr2Liner is a connection to an addr2line command for obtaining |
| 38 | // address and line number information from a binary. |
| 39 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected