library/src/blockclass/BP-BlockClass.cc
// Local Version: Allocated to local class pointer
Local Version: Allocated to local class pointer
Local Version : Allocated to local class pointer
int Block::DbgDecodeInstructionsMem(void *addr, size_t length)
{
	unsigned char * memRead = DbgReadMemory(addr, length);
	if (memRead == NULL)
		return ERR_FAILURE;
	if (DbgDecodeInstructions((void *) memRead, length, (size_t ) addr) == ERR_SUCCESS)
	{
		if (memRead != NULL)
			tq_free(this->tq, memRead);
		return ERR_SUCCESS;
	}
	return ERR_FAILURE;
}
int Block :: DbgDecodeInstructionsMem ( void * addr , size_t length ) { unsigned char * memRead = DbgReadMemory ( addr , length ) ; if ( memRead == NULL ) return ERR_FAILURE ; if ( DbgDecodeInstructions ( ( void * ) memRead , length , ( size_t ) addr ) == ERR_SUCCESS ) { if ( memRead != NULL ) tq_free ( this -> tq , memRead ) ; return ERR_SUCCESS ; } return ERR_FAILURE ; }
Local Version: Allocated to local class pointer
Local Version : Allocated to local class pointer
// read arbitrary data from memory // Decode the instructions and store in local struct // return indicating success // return indicating failure