(sym_offset int64, sym_data, ins []byte)
| 77 | } |
| 78 | |
| 79 | func FindIns(sym_offset int64, sym_data, ins []byte) string { |
| 80 | var result []string |
| 81 | ret_offset := bytes.Index(sym_data, ins) |
| 82 | for ret_offset > 0 { |
| 83 | result = append(result, fmt.Sprintf("0x%x", sym_offset+int64(ret_offset))) |
| 84 | sym_data = sym_data[ret_offset:] |
| 85 | ret_offset = bytes.Index(sym_data, ins) |
| 86 | } |
| 87 | return strings.Join(result, ",") |
| 88 | } |
| 89 | |
| 90 | type PackageInfo struct { |
| 91 | Name string |