本文整理汇总了Golang中github.com/bnagy/crashwalk/crash.Info.Registers方法的典型用法代码示例。如果您正苦于以下问题:Golang Info.Registers方法的具体用法?Golang Info.Registers怎么用?Golang Info.Registers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/bnagy/crashwalk/crash.Info
的用法示例。
在下文中一共展示了Info.Registers方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: parse
func parse(raw []byte, cmd string) crash.Info {
// this just prettifies the rest of the parsers slightly
die := func() {
explode(raw, cmd)
}
ci := crash.Info{}
ci.Registers = parseRegisters(raw, die)
parseStack(raw, &ci, die)
parseExploitable(raw, &ci, die)
ci.FaultingInsn, ci.Disassembly = parseDisasm(raw, die)
parseIndicators(raw, &ci, die)
return ci
}
示例2: parse
func parse(raw []byte, cmd string) crash.Info {
// This is "inefficient", but I'm going to parse each thing I'm interested
// in out of the full output instead of doing a single pass.
// this just prettifies the rest of the parsers slightly
die := func() {
explode(raw, cmd)
}
ci := crash.Info{}
ci.Registers = parseRegisters(raw, die)
ci.Stack = parseStack(raw, die)
parseExploitable(raw, &ci, die) // easier for this one to modify ci directly
ci.FaultingInsn, ci.Disassembly = parseDisasm(raw, die)
return ci
}