
Adds an optional scope prefix to the `regs` command which allows printing registers for any stack frame (as long as they were somehow saved). Issue #1838 is not yet to be closed since we are still not recovering the registers of a segfaulting frame. Updates #1838
32 lines
1006 B
Go
32 lines
1006 B
Go
package proc
|
|
|
|
import (
|
|
"github.com/go-delve/delve/pkg/dwarf/frame"
|
|
"github.com/go-delve/delve/pkg/dwarf/op"
|
|
)
|
|
|
|
// Arch defines an interface for representing a
|
|
// CPU architecture.
|
|
type Arch interface {
|
|
PtrSize() int
|
|
MaxInstructionLength() int
|
|
AsmDecode(asmInst *AsmInstruction, mem []byte, regs Registers, memrw MemoryReadWriter, bi *BinaryInfo) error
|
|
Prologues() []opcodeSeq
|
|
BreakpointInstruction() []byte
|
|
BreakInstrMovesPC() bool
|
|
BreakpointSize() int
|
|
DerefTLS() bool
|
|
FixFrameUnwindContext(*frame.FrameContext, uint64, *BinaryInfo) *frame.FrameContext
|
|
SwitchStack(it *stackIterator, callFrameRegs *op.DwarfRegisters) bool
|
|
RegSize(uint64) int
|
|
RegistersToDwarfRegisters(uint64, Registers) op.DwarfRegisters
|
|
AddrAndStackRegsToDwarfRegisters(uint64, uint64, uint64, uint64, uint64) op.DwarfRegisters
|
|
DwarfRegisterToString(int, *op.DwarfRegister) (string, bool, string)
|
|
}
|
|
|
|
const (
|
|
crosscall2SPOffsetBad = 0x8
|
|
crosscall2SPOffsetWindows = 0x118
|
|
crosscall2SPOffsetNonWindows = 0x58
|
|
)
|