os/kernelhwsrv/kerneltest/e32utils/analyse/symbols.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __SYMBOLS__
    17 #define __SYMBOLS__
    18 
    19 #include "trace.h"
    20 
    21 class SymbolFile
    22 	{
    23 public:
    24 	class Parser
    25 		{
    26 	public:
    27 		virtual void File(const char* aName) =0;
    28 		virtual bool Symbol(const char* aName, PC aPc, int aLength) =0;
    29 		virtual void Done(PC aFirstPc, PC aLastPc, int aModuleId) =0;
    30 		};
    31 private:
    32 	enum TState {EPreFile, EFile, EPostFile, ESymbol, EError};
    33 public:
    34 	SymbolFile(const char* aSymbolFile, bool aRofs=false);
    35 	~SymbolFile();
    36 //
    37 	bool Parse(Parser& aParser, const char* aModuleName=0, PC aAddress=0, PC aModuleLength=0,int aModuleId=0) const;
    38 private:
    39 	char* iText;
    40 	char* iTextLower;
    41 	int iLength;
    42 	};
    43 
    44 #endif // __SYMBOLS__