(r *regexp.Regexp, addr uint64)
| 645 | } |
| 646 | |
| 647 | func (f *file) Symbols(r *regexp.Regexp, addr uint64) ([]*plugin.Sym, error) { |
| 648 | // Get from nm a list of symbols sorted by address. |
| 649 | cmd := exec.Command(f.b.nm, "-n", f.name) |
| 650 | out, err := cmd.Output() |
| 651 | if err != nil { |
| 652 | return nil, fmt.Errorf("%v: %v", cmd.Args, err) |
| 653 | } |
| 654 | |
| 655 | return findSymbols(out, f.name, r, addr) |
| 656 | } |
| 657 | |
| 658 | // fileNM implements the binutils.ObjFile interface, using 'nm' to map |
| 659 | // addresses to symbols (without file/line number information). It is |
nothing calls this directly
no test coverage detected