def FromSBFrame(sbFrame):
frame = DbgFrame()
frame.sbFrame = sbFrame
strIp = string.rstrip(hex(sbFrame.addr.GetLoadAddress(g_dbg.target)), 'L')
strModule = sbFrame.module.file.basename
strRoutine = sbFrame.symbol.name
if (strModule is None or strModule == '') and (strRoutine is None or strRoutine == ''):
tplFrame = DbgFrame.__tryget_managed_frame_info(strIp)
strModule = tplFrame[0]
strRoutine = tplFrame[1]
frame.__populate_frame_strs(strIp, strModule, strRoutine)
return frame
评论列表
文章目录