library/src/memory/BP-LinuxMemMapping.cc
// Prints out one single memory map list element 
Prints out one single memory map list element
Prints out one single memory map list element
int PrintMemMapElement(P_MEMORY_MAP memMapHandle)
{
	if(memMapHandle == NULL)
		return ERR_MEMMAP_NULL;
	printf("\n");
	printf("\n+--------------------------------+");
	printf("\n| Memory Map Element: %p  |", memMapHandle);
	printf("\n+--------------------------------+");
	printf("\n\t Range Origin: %s", memMapHandle->path);
	printf("\n\t\t High Address: %p", memMapHandle->highAddr);
	printf("\n\t\t Low  Address: %p", memMapHandle->lowAddr);
	printf("\n\t\t\t Read: ");
		if(memMapHandle->read > 0)
			printf("YES");			
		else
			printf("NO");
	printf("\n\t\t\t Write: ");
		if(memMapHandle->write > 0)
			printf("YES");			
		else
			printf("NO");
	printf("\n\t\t\t execute: ");
		if(memMapHandle->execute > 0)
			printf("YES");			
		else
			printf("NO");
	printf("\n\t\t\t Private: ");
		if(memMapHandle->priv > 0)
			printf("YES");			
		else
			printf("NO");
	printf("\n\t\t\t Shared: ");
		if(memMapHandle->shared > 0)
			printf("YES");			
		else
			printf("NO");
	printf("\n\t\t first: %p", memMapHandle->first);
	printf("\n\t\t prev:  %p", memMapHandle->prev);
	printf("\n\t\t next:  %p", memMapHandle->next);
	printf("\n");
	return ERR_SUCCESS;	
}
int PrintMemMapElement ( P_MEMORY_MAP memMapHandle ) { if ( memMapHandle == NULL ) return ERR_MEMMAP_NULL ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " , memMapHandle ) ; printf ( " \n " ) ; printf ( " \n \t " , memMapHandle -> path ) ; printf ( " \n \t \t " , memMapHandle -> highAddr ) ; printf ( " \n \t \t " , memMapHandle -> lowAddr ) ; printf ( " \n \t \t \t " ) ; if ( memMapHandle -> read > 0 ) printf ( " " ) ; else printf ( " " ) ; printf ( " \n \t \t \t " ) ; if ( memMapHandle -> write > 0 ) printf ( " " ) ; else printf ( " " ) ; printf ( " \n \t \t \t " ) ; if ( memMapHandle -> execute > 0 ) printf ( " " ) ; else printf ( " " ) ; printf ( " \n \t \t \t " ) ; if ( memMapHandle -> priv > 0 ) printf ( " " ) ; else printf ( " " ) ; printf ( " \n \t \t \t " ) ; if ( memMapHandle -> shared > 0 ) printf ( " " ) ; else printf ( " " ) ; printf ( " \n \t \t " , memMapHandle -> first ) ; printf ( " \n \t \t " , memMapHandle -> prev ) ; printf ( " \n \t \t " , memMapHandle -> next ) ; printf ( " \n " ) ; return ERR_SUCCESS ; }
Prints out one single memory map list element
Prints out one single memory map list element