proc: Remove (*Arch).Prologues method (#2192)
It returns an unexported type and is only used in a single place.
This commit is contained in:
parent
db716e4678
commit
a2550b4809
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user