未验证 提交 a2550b48 编写于 作者: A Alessandro Arzilli 提交者: GitHub

proc: Remove (*Arch).Prologues method (#2192)

It returns an unexported type and is only used in a single place.
上级 db716e46
......@@ -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 {
......
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册