library/src/blockclass/BP-BlockClass.cc
// returns ERR_SUCCESS if the breakpoint is installed
// and ERR_FAILURE if it is not.
returns ERR_SUCCESS if the breakpoint is installed
and ERR_FAILURE if it is not.
returns ERR_SUCCESS if the breakpoint is installed and ERR_FAILURE if it is not .
int Block::DbgBreakpointIsSet(int bpIdentifier)
{
	if (dbgHandle == NULL)
		return ERR_DBG_HANDLE_NULL;
	P_DEBUG_BREAKPOINT_LIST bpElement = NULL;
	if (BreakpointIsSet(dbgHandle, bpIdentifier) == ERR_SUCCESS)
	{
		bpElement = GetBreakpointByNumber(dbgHandle, bpIdentifier);
		if (bpElement != NULL)
		{
			if (DebugCompareMemory(dbgHandle, bpElement->bpAddr, (void *) "\xCC", 1) == ERR_SUCCESS)
			{
				return ERR_SUCCESS;
			}
		}
		else
		{
			return ERR_FAILURE;
		}
	}
	return ERR_FAILURE;
}
int Block :: DbgBreakpointIsSet ( int bpIdentifier ) { if ( dbgHandle == NULL ) return ERR_DBG_HANDLE_NULL ; P_DEBUG_BREAKPOINT_LIST bpElement = NULL ; if ( BreakpointIsSet ( dbgHandle , bpIdentifier ) == ERR_SUCCESS ) { bpElement = GetBreakpointByNumber ( dbgHandle , bpIdentifier ) ; if ( bpElement != NULL ) { if ( DebugCompareMemory ( dbgHandle , bpElement -> bpAddr , ( void * ) " \xCC " , 1 ) == ERR_SUCCESS ) { return ERR_SUCCESS ; } } else { return ERR_FAILURE ; } } return ERR_FAILURE ; }
returns ERR_SUCCESS if the breakpoint is installed
and ERR_FAILURE if it is not.
returns ERR_SUCCESS if the breakpoint is installed and ERR_FAILURE if it is not .
// verify in memory that the breakpoint is set by comparing it with int3 // return indicating success // return indicating failure // return indicating failure