diff -r 185201be11b0 -r 516af714ebb4 analyzetool/dynamicmemoryhook/src/codeblock.cpp --- a/analyzetool/dynamicmemoryhook/src/codeblock.cpp Thu Sep 02 22:05:40 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Definitions for the class TCodeblock. -* -*/ - - -#include "codeblock.h" -#include "atlog.h" - -// ----------------------------------------------------------------------------- -// TCodeblock::TCodeblock -// C++ default constructor. -// ----------------------------------------------------------------------------- -// -TCodeblock::TCodeblock( TLinAddr aRunAddress, - TUint32 aSize, - TBuf8& aName ) : - iStartAddress( aRunAddress ), - iEndAddress( aRunAddress + aSize ) - { - LOGSTR3( "ATMH TCodeblock::TCodeblock() %x - %x", iStartAddress, iEndAddress ); - iName.Copy( aName ); - } - -// ----------------------------------------------------------------------------- -// TCodeblock::CheckAddress -// Checks if the given address is in this memory block area -// ----------------------------------------------------------------------------- -// -TBool TCodeblock::CheckAddress( TUint32 aAddress ) - { - if ( iStartAddress <= aAddress && aAddress <= iEndAddress ) - { - return ETrue; - } - return EFalse; - } - -// ----------------------------------------------------------------------------- -// TCodeblock::Match -// Matches if the given parameters represents this memory block -// ----------------------------------------------------------------------------- -// -TBool TCodeblock::Match( TBuf8& aName ) - { - LOGSTR1( "ATMH TCodeblock::Match()" ); - return ( 0 == iName.CompareF( aName ) ) ? ETrue : EFalse; - } - -// End of File