|
@@ -143,9 +143,18 @@ func (f fakeObj) SourceLine(addr uint64) ([]plugin.Frame, error) {
|
143
|
143
|
}
|
144
|
144
|
func (f fakeObj) Symbols(r *regexp.Regexp, addr uint64) ([]*plugin.Sym, error) {
|
145
|
145
|
return []*plugin.Sym{
|
146
|
|
- {[]string{"F1"}, fakeSource, addrBase, addrBase + 10},
|
147
|
|
- {[]string{"F2"}, fakeSource, addrBase + 10, addrBase + 20},
|
148
|
|
- {[]string{"F3"}, fakeSource, addrBase + 20, addrBase + 30},
|
|
146
|
+ {
|
|
147
|
+ Name: []string{"F1"}, File: fakeSource,
|
|
148
|
+ Start: addrBase, End: addrBase + 10,
|
|
149
|
+ },
|
|
150
|
+ {
|
|
151
|
+ Name: []string{"F2"}, File: fakeSource,
|
|
152
|
+ Start: addrBase + 10, End: addrBase + 20,
|
|
153
|
+ },
|
|
154
|
+ {
|
|
155
|
+ Name: []string{"F3"}, File: fakeSource,
|
|
156
|
+ Start: addrBase + 20, End: addrBase + 30,
|
|
157
|
+ },
|
149
|
158
|
}, nil
|
150
|
159
|
}
|
151
|
160
|
|