diff --git a/pkg/proc/arch.go b/pkg/proc/arch.go index 17e726a757f7dcc6dafe7d635b6d44ef1ae51194..a02a0cf14d86282385072b51cbf2920f213355f7 100644 --- a/pkg/proc/arch.go +++ b/pkg/proc/arch.go @@ -59,12 +59,6 @@ func (a *Arch) MaxInstructionLength() int { return a.maxInstructionLength } -// Prologues returns a list of stack split prologues -// that are inserted at function entry. -func (a *Arch) Prologues() []opcodeSeq { - return a.prologues -} - // BreakpointInstruction is the instruction that will trigger a breakpoint trap for // the given architecture. func (a *Arch) BreakpointInstruction() []byte { diff --git a/pkg/proc/disasm.go b/pkg/proc/disasm.go index 94477990ea0eb2048cc70d7d36b0795a1c50052a..808a11e9517f9975c27455d4ca78930c214cb627 100644 --- a/pkg/proc/disasm.go +++ b/pkg/proc/disasm.go @@ -83,7 +83,7 @@ func firstPCAfterPrologueDisassembly(p Process, fn *Function, sameline bool) (ui return fn.Entry, nil } - for _, prologue := range p.BinInfo().Arch.Prologues() { + for _, prologue := range p.BinInfo().Arch.prologues { if len(prologue) >= len(text) { continue }