亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dbgarchlib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* forward declaration */LOCAL int dbgInterruptPCW;	/* used by dbgIntrInfoSave/Restore */LOCAL int dbgHwRegStatus;	/* keep status of hardware regs being used *//********************************************************************************* _dbgArchInit - architecture dependent initialization routine** This routine initialize global function pointers that are architecture * specific.** RETURNS: N/A** NOMANUAL*/void _dbgArchInit (void)    {    _dbgDsmInstRtn = (FUNCPTR) dsm960Inst;    }/********************************************************************************  _dbgTraceDisable - disable trace mode** NOMANUAL*/void _dbgTraceDisable (void)    {    vxPCWClear (PCW_TRACE_ENABLE_MASK);    }/******************************************************************************** _dbgFuncCallCheck - check if opcode is a function call** RETURNS: TRUE if op code at the given addr is a subroutine call.** NOMANUAL*/BOOL _dbgFuncCallCheck     (    INSTR * pInst		/* pointer to instruction to check */    )    {    return (dsmFuncCallCheck (pInst));    }#if	(BRK_HW_BP != 0)/****************************************************************************** ** _dbgHwAdrsCheck - verify address is valid** Checks to make sure the given adrs is on a 32-bit boundary, and* that it is accessable.** RETURNS: OK or ERROR if address not on a 32-bit boundary or unaccessible.** NOMANUAL*/STATUS _dbgHwAdrsCheck     (    INSTR *	adrs,		/* address to check */    int		access		/* access type */    )    {    UINT32 val;			/* dummy for vxMemProbe */    if ((int) adrs & 0x03)	return (ERROR);#if	CPU==I960CA    switch (access)	{	case DAB_ACCESS_STORE:	    if (vxMemProbe ((char *)adrs, O_WRONLY, 4, (char *) &val) != OK)		{		return (ERROR);		}	    break;	case HW_INST_BRK:	    if (vxMemProbe ((char *)adrs, O_RDONLY, 4, (char *) &val) != OK)		{		return (ERROR);		}	    break;        case DAB_ACCESS_DATA_LOAD_OR_STORE:	case DAB_ACCESS_DATA_OR_INSTR_FETCH: 	case DAB_ACCESS_ANY_ACCESS: 	     if (vxMemProbe ((char *)adrs, O_RDONLY, 4, (char *) &val) != OK ||	         vxMemProbe ((char *)adrs, O_WRONLY, 4, (char *) &val) != OK)		 {		 return (ERROR);		 }	    break;	default:	    break;	}#endif	/* CPU==I960CA */    return (OK);    }/******************************************************************************** _dbgHwDisplay - display a hardware breakpoint ** NOMANUAL*/void _dbgHwDisplay     (    BRKENTRY * bp		/* breakpoint table entry */    )    {    if ((bp->type & BRK_HW_BP) == 0)	return;    printf (" (hard-");#if CPU==I960CA    switch (bp->pHwBp->hbAccess)	{	case DAB_ACCESS_STORE:	    printf ("store only)");	    break;	case DAB_ACCESS_DATA_LOAD_OR_STORE:	    printf ("data only)");	    break;	case DAB_ACCESS_DATA_OR_INSTR_FETCH:	    printf ("data/instr fetch)");	    break;	case DAB_ACCESS_ANY_ACCESS:	    printf ("any access)");	    break;	case HW_INST_BRK:	    printf ("instruction)");	    break;	default:	    printf ("unknown)");	    break;	}#endif	/* CPU==I960CA */    }/******************************************************************************** _dbgHwBpSet - set a data breakpoint register** Access is the type of access that will generate a breakpoint.*  000 - store only*  001 - data only (load or store)*  010 - data or instruction fetch*  011 - any access*  100 - instruction breakpoint** NOMANUAL*/void _dbgHwBpSet     (    INSTR * 	addr,		/* address on which to break */    HWBP *	pHwBp		/* hardware breakpoint */    )    {#if CPU==I960CA    switch (pHwBp->hbRegNum)	{	case REG_NUM_DAB0:	    dbgDAB0Set ((char *) addr);	    dbgDAB0Enable (pHwBp->hbAccess);	    break;	case REG_NUM_DAB1:	    dbgDAB1Set ((char *) addr);	    dbgDAB1Enable (pHwBp->hbAccess);	    break;	case REG_NUM_IPB0:	    (void) dbgIPB0Set ((char *)addr);	    break;	case REG_NUM_IPB1:	    (void) dbgIPB1Set ((char *)addr);	    break;	default:	    break;	}#endif	/* CPU==I960CA */    }/******************************************************************************** _dbgHwBpCheck - check if instruction could have caused a data breakpoint** Check to see if the instruction at the given address caused a* memory reference that matches one of the DAB registers.* Or if the address of the instruction itself caused a break.* This would be true if the access type was for instruction fetch.** RETURNS: TRUE if match, FALSE if no match.** NOMANUAL*/BOOL _dbgHwBpCheck    (    INSTR *	pInstr,	/* ptr to instruction to check 	*/    BRKENTRY *	bp,		/* pointer to breakpoint entry */    int		tid,		/* task's id */    volatile BOOL checkFlag	/* flag to check if breakpoint hit */    )    {#if CPU==I960CA    UINT32 	addr1;    REG_SET	regSet;    if ((bp->type & BRK_HW_BP) == 0)	return (FALSE);    /* check to see if instruction addr caused break */    if (pInstr == bp->addr)	return (TRUE);    taskRegsGet (tid, &regSet);    /* check to see if memory reference caused break */    if (dsmMemInstrCheck(pInstr))	{	addr1 = dsmMEMInstrRefAddrGet(pInstr, (UINT32 *)&regSet);	if (bp->addr == (INSTR *) addr1)	    return (TRUE);	}    if ((UINT32)bp->addr == (sysCtrlTable[0]&0xfffffffc))	return (TRUE);    if ((UINT32)bp->addr == (sysCtrlTable[1]&0xfffffffc))	return (TRUE);#endif	/* CPU==I960CA */    return (FALSE);    }/******************************************************************************** _dbgHwBpClear - clear a data breakpoint** Clears a data breakpoint based on given regiser number, but does not* free the resource. This is the mechanism used to clear disable* hardware breakpoints when a task is unbreakable.** NOMANUAL*/void _dbgHwBpClear     (    HWBP * pHwBp		/* hardware breakpoint */    )    {#if CPU==I960CA    switch (pHwBp->hbRegNum)	{	case REG_NUM_DAB0:	    dbgDAB0Set ((char *) -1);	    dbgDAB0Disable ();	    break;	case REG_NUM_DAB1:	    dbgDAB1Set ((char *) -1);	    dbgDAB1Disable ();	    break;	case REG_NUM_IPB0:	    (void) dbgIPB0Disable ();	    break;	case REG_NUM_IPB1:	    (void) dbgIPB1Disable ();	    break;	}#endif	/* CPU==I960CA */    }/******************************************************************************** _dbgArchHwBpFree - free hardware breakpoint data entry** NOMANUAL*/void _dbgArchHwBpFree    (    HWBP * pHwBp	/* pointer to hardware breakpoint data structure */    )    {    dbgHwRegStatus &= ~(1<< pHwBp->hbRegNum);    }#endif	/*  (BRK_HW_BP != 0) *//******************************************************************************** _dbgInfoPCGet - exception frame's PC/IP (program counter/instruction *                    pointer)** RETURNS: PC/IP** NOMANUAL*/INSTR * _dbgInfoPCGet    (    BREAK_ESF * pBrkInfo	/* pointer to exception frame */    )    {    return ((INSTR *) pBrkInfo->faultIP);    }/******************************************************************************** _dbgInstSizeGet - get size of instruction in sizeof(INSTR)'s** RETURNS: The size of the instruction.** NOMANUAL*/int _dbgInstSizeGet     (    INSTR * pInst	/* pointer to instruction to check */    )    {    return (dsmNbytes (pInst) / sizeof (INSTR));    }/******************************************************************************** _dbgIntrInfoRestore - restore the info saved by dbgIntrInfoSave** NOMANUAL*/void _dbgIntrInfoRestore    (     BREAK_ESF *	pBrkInfo		/* pointer to execption frame */    )    {    pBrkInfo->procCtrl = dbgInterruptPCW;    }/******************************************************************************** _dbgIntrInfoSave - save info when breakpoints are hit at interrupt level.** NOMANUAL*/void _dbgIntrInfoSave    (    BREAK_ESF *	pBrkInfo		/* pointer to breakpoint ESF */    )    {    dbgInterruptPCW = pBrkInfo->procCtrl;    }/******************************************************************************** _dbgRegsAdjust - adjust stack pointer** Adjust the stack pointer of the given REG_SET to remove the * exception frame, caused by the TRACE FAULT.** NOMANUAL*/void _dbgRegsAdjust    (    int		tid,		/* task's id */    TRACE_ESF *	pBrkInfo,	/* pointer to exception frame 	 */    int *	pRegSet,	/* pointer to tasks register set */    volatile BOOL flag		/* tells what type of ESF to use */    )    {    ansiFix = (int)pBrkInfo->faultIP;	 /* fix ansi warning */    /* NOP for 80960 because fault record (ESF) is     * stuck in just before the stack frame for the     * fault handler.     */    taskRegsSet (tid, (REG_SET *) pRegSet);    }/******************************************************************************** _dbgTaskPCSet - set task's pc** NOMANUAL*/void _dbgTaskPCSet    (    int		tid,	/* task's id */    INSTR *	pc,	/* pc to set */    INSTR *	npc 	/* npc to set (not supported by 960) */    )    {    REG_SET regSet;    ansiFix = (int)npc;		/* fix ansi warning */    if (taskRegsGet (tid, &regSet) ==OK)	{	regSet.rip = (UINT32) pc;	taskRegsSet (tid, &regSet);	}    }/******************************************************************************** _dbgTaskPCGet - get task's pc** NOMANUAL*/INSTR * _dbgTaskPCGet    (    int	tid		/* task's id */    )    {    REG_SET regSet;    taskRegsGet (tid, &regSet);    return ((INSTR *) regSet.rip);    }/******************************************************************************** _dbgRetAdrsGet - address of the subroutine in which has hit a breakpoint** RETURNS: Address of the next instruction to be executed upon*  	   return of the current subroutine.** INTERNAL* BAL instruction will need to be taken into account here.** NOMANUAL*/INSTR * _dbgRetAdrsGet    (    REG_SET * pRegSet	/* reg set of broken task */    )    {#define MAX_NAME_LEN 80    UINT32	retVal;    UINT32	type 	= 0x00;    UINT32	regNum;    INT8	name[MAX_NAME_LEN];    REG_SET *	pPrevRegSet = (REG_SET *)pRegSet->pfp;    INSTR * 	pInstr0 = (INSTR *)(pRegSet->rip & 0xfffffffc);    INSTR * 	pInstr1 = pInstr0;    /* from this address, find the symbol in the symbol table that     * is closest yet lower than the address. If this symbol is a leaf-proc     * entry, then get the return address either from gx or g14,     * depending on whether or not the mov g14, gx instruction has been     * executed. If the symbol is not a leaf_proc entry point,     * it is a regular function entry. Get the return address from     * the rip of the previous frame. Caveat: if an assembly language     * symbol starts with an `_', this could fool this algo. into     * thinking it is the start of a function.     */    strcpy (name, "\0");    symFindByValue (sysSymTbl, (UINT) pInstr0, (char *) &name, 		    (int *) &pInstr0, (SYM_TYPE *) &type);    if (!strncmp (&name[strlen(name) - 3], ".lf", 3))	{	/* this is a leaf_proc. first we must check to see if we	 * are sitting on the mov g14, gx instruction If we are,	 * return the value in g14, otherwise, disect the instruction	 * and figure out what register is holding the return value */	if ((*pInstr1 & MOV_G14_MASK) == INST_MOV_G14)	    retVal = pRegSet->g14;	else	    {	    regNum = (*pInstr0 & SRC_REG_MASK) >> 0x13;	    retVal = *(((UINT32 *)pRegSet) + regNum);	    printf ("regNum: 0x%x, retVal: 0x%x 0x%x \n",		    regNum, retVal, *pInstr0);	    }	/* we still have to figure out if we got to this point in the leaf-proc	 * via a 'call' or 'bal' instruction. If we came via a call instruction,	 * the address 'retVal' will point to the 'ret' instruction at the	 * end of the function. Otherwise, it will be the address of the	 * instruction following the 'bal'. If 'retVal' does not point to a	 * 'ret' instruction, we can just return it.	 *	 * NOTE: We could still be fooled if caller's 'bal' or 'balx' is	 * followed by 'ret.' Perhaps we should also check to see if the	 * instruction preceding 'ret' is 'bx gx' and or some similar check.	 */	if (((*(INSTR *)retVal) & 0xff000000) != 0x0a000000)	    return ((INSTR *)retVal);	}    /* non-leaf_proc function or 'called' leaf-proc */    return ((INSTR *)(pPrevRegSet->rip & 0xfffffffc));    }/*************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本高清不卡一区| 色婷婷久久久综合中文字幕| 亚洲免费看黄网站| 国产精品日韩成人| 久久久久久久综合狠狠综合| 亚洲精品一区二区三区99| 欧美乱熟臀69xxxxxx| 日韩视频在线观看一区二区| 97se狠狠狠综合亚洲狠狠| 不卡的av中国片| 在线观看免费亚洲| 欧美日韩激情在线| 日韩一区二区精品| 中文字幕免费一区| 亚洲视频一区二区在线观看| 一区二区成人在线观看| 日韩制服丝袜av| 乱中年女人伦av一区二区| 精油按摩中文字幕久久| 成人黄色小视频在线观看| 99久久精品国产网站| 欧美在线视频你懂得| 51午夜精品国产| 久久日一线二线三线suv| 欧美国产精品专区| 亚洲精品国产一区二区三区四区在线 | 亚洲丝袜美腿综合| 亚瑟在线精品视频| 国产美女视频一区| 91福利小视频| 精品美女被调教视频大全网站| 中文字幕不卡一区| 日本成人超碰在线观看| 国内成+人亚洲+欧美+综合在线| 成人91在线观看| 91麻豆精品国产91久久久久久久久 | 欧美日韩一区二区在线视频| 欧美tickling网站挠脚心| 国产欧美日韩视频在线观看| 亚洲精品乱码久久久久久黑人| 老汉av免费一区二区三区| av激情综合网| 精品久久久久久最新网址| 亚洲码国产岛国毛片在线| 免费精品99久久国产综合精品| 不卡的av电影在线观看| 欧美大尺度电影在线| 亚洲视频一区二区在线观看| 久久er精品视频| 欧美日韩一区二区三区不卡| 国产精品女主播av| 久久精品免费看| 欧美午夜不卡视频| ...av二区三区久久精品| 紧缚奴在线一区二区三区| 色呦呦一区二区三区| 国产目拍亚洲精品99久久精品| 日韩和欧美一区二区三区| 一本色道综合亚洲| 欧美经典一区二区| 国产在线看一区| 日韩一区二区三区四区五区六区| 这里是久久伊人| 成人欧美一区二区三区黑人麻豆| 国产传媒日韩欧美成人| 日本黄色一区二区| 国产精品国产精品国产专区不蜜 | 91国产成人在线| 国产精品国产三级国产普通话蜜臀| 日韩激情视频网站| 欧美裸体bbwbbwbbw| 一区二区不卡在线播放 | 亚洲国产精品综合小说图片区| 91免费观看在线| 国产欧美一区在线| 国产精品综合网| 欧美videossexotv100| 日本午夜一本久久久综合| 欧美日韩黄色影视| 青青国产91久久久久久| 在线观看91精品国产麻豆| 天堂成人免费av电影一区| 欧美日韩你懂得| 日韩综合小视频| 日韩欧美一级二级三级久久久| 蜜臀精品久久久久久蜜臀| 9191成人精品久久| 精品一区二区三区影院在线午夜 | 国产精品不卡在线观看| 99re热这里只有精品视频| 专区另类欧美日韩| 欧美午夜精品久久久久久孕妇| 一区二区三区中文字幕电影| 欧美色区777第一页| 免费高清在线一区| 国产偷国产偷精品高清尤物| 粉嫩aⅴ一区二区三区四区五区| 中文字幕一区在线| 欧美群妇大交群中文字幕| 麻豆91免费观看| 国产精品私人影院| 欧美性猛交xxxxxxxx| 免费视频最近日韩| 国产精品久久久久久久久久久免费看| 91网站黄www| 奇米四色…亚洲| 中文字幕一区二区视频| 欧美色图片你懂的| 国产在线播精品第三| 亚洲私人黄色宅男| 日韩欧美亚洲国产另类| eeuss影院一区二区三区| 午夜视频在线观看一区| 中文字幕精品三区| 在线电影一区二区三区| 成人看片黄a免费看在线| 日韩精品乱码免费| 国产精品久久久久四虎| 欧美喷潮久久久xxxxx| 国产精品66部| 性做久久久久久久免费看| 国产清纯在线一区二区www| 欧美日韩国产美| 色一情一伦一子一伦一区| 久久9热精品视频| 亚洲国产日韩av| 中文字幕一区二区5566日韩| 日韩精品影音先锋| 欧美精品一级二级| 91碰在线视频| 成人午夜又粗又硬又大| 日日摸夜夜添夜夜添国产精品| 国产精品久久久久aaaa| 日韩欧美国产一区二区三区| 日本精品免费观看高清观看| 成人影视亚洲图片在线| 激情五月激情综合网| 午夜免费久久看| 亚洲v中文字幕| 亚洲精品一卡二卡| 国产精品高潮久久久久无| 26uuu亚洲综合色欧美| 日韩女优av电影| 欧美videos中文字幕| 欧美成人激情免费网| 91精品国产一区二区| 欧美日韩国产电影| 欧美午夜精品久久久| 欧美性做爰猛烈叫床潮| 91国偷自产一区二区开放时间| 99视频一区二区| 91免费看`日韩一区二区| 色综合天天性综合| 色综合天天综合网天天看片| 91网站最新地址| 欧美在线你懂得| 欧美精品xxxxbbbb| 日韩视频免费观看高清完整版| 91精品国产综合久久久久久漫画| 欧美日韩中文另类| 欧美一区二区视频在线观看2020 | 精品一区二区在线看| 激情综合色丁香一区二区| 激情深爱一区二区| 成人夜色视频网站在线观看| eeuss影院一区二区三区| 波多野结衣亚洲| 欧美在线观看视频一区二区三区| 欧美三级午夜理伦三级中视频| 91精品国产入口在线| 亚洲精品在线免费播放| 国产视频一区二区在线| 国产精品免费aⅴ片在线观看| 国产精品久线观看视频| 亚洲精品日日夜夜| 日本欧美韩国一区三区| 国产精品91xxx| 在线中文字幕一区二区| 91精品免费在线| 日本一区二区三区在线不卡| 亚洲精品国产视频| 美女视频免费一区| 不卡一二三区首页| 8x福利精品第一导航| 久久久五月婷婷| 一区二区三区视频在线看| 九九精品一区二区| 一本一道波多野结衣一区二区| 5858s免费视频成人| 日本一区二区久久| 日韩精品色哟哟| 色综合天天综合网天天狠天天| 日韩一级精品视频在线观看| 欧美激情一区二区三区全黄| 亚洲成人动漫在线观看| 福利电影一区二区| 3d动漫精品啪啪| 夜夜嗨av一区二区三区| 国产91清纯白嫩初高中在线观看| 欧美系列日韩一区|