binrep is an immutable representation for Binutils. It is atomically replaced on every mutation to provide thread-safe access.
| 52 | // binrep is an immutable representation for Binutils. It is atomically |
| 53 | // replaced on every mutation to provide thread-safe access. |
| 54 | type binrep struct { |
| 55 | // Commands to invoke. |
| 56 | llvmSymbolizer string |
| 57 | llvmSymbolizerFound bool |
| 58 | addr2line string |
| 59 | addr2lineFound bool |
| 60 | nm string |
| 61 | nmFound bool |
| 62 | objdump string |
| 63 | objdumpFound bool |
| 64 | isLLVMObjdump bool |
| 65 | |
| 66 | // if fast, perform symbolization using nm (symbol names only), |
| 67 | // instead of file-line detail from the slower addr2line. |
| 68 | fast bool |
| 69 | } |
| 70 | |
| 71 | // get returns the current representation for bu, initializing it if necessary. |
| 72 | func (bu *Binutils) get() *binrep { |
nothing calls this directly
no outgoing calls
no test coverage detected