eapol/eapol_framework/eapol_common/am/common/stack/eap_am_stack_trace.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #if !defined(_STACK_OUTPUT_H_)
       
    22 #define _STACK_OUTPUT_H_
       
    23 
       
    24 #include "eap_am_export.h"
       
    25 
       
    26 class abs_eap_am_tools_c;
       
    27 
       
    28 /**
       
    29  * This class implemets a stack trace. This code is highly processor dependent.
       
    30  * Only Intel processor with gcc or MSVC is supported.
       
    31  */
       
    32 class EAP_EXPORT stack_trace
       
    33 {
       
    34 private:
       
    35 
       
    36 	/// This is pointer to the tools class.
       
    37 	abs_eap_am_tools_c * const m_am_tools;
       
    38 
       
    39 	/**
       
    40 	 * This function traces stack frames starting from bp.
       
    41 	 * The bp is pointer to base of the starting stack frame.
       
    42 	 */
       
    43 	EAP_FUNC_IMPORT void trace_frames(
       
    44 		unsigned long *bp
       
    45 		);
       
    46 
       
    47 public:
       
    48 
       
    49 	/**
       
    50 	 * Destructor does nothing special.
       
    51 	 */
       
    52 	EAP_FUNC_IMPORT virtual ~stack_trace();
       
    53 
       
    54 	/**
       
    55 	 * Constructor does nothing special.
       
    56 	 */
       
    57 	EAP_FUNC_IMPORT stack_trace(abs_eap_am_tools_c * const tools);
       
    58 
       
    59 	/**
       
    60 	 * This function traces stack frames starting from current frame.
       
    61 	 * Value of parameter memory_address is traced in the begin.
       
    62 	 */
       
    63 	EAP_FUNC_IMPORT void trace(const void * const memory_address);
       
    64 
       
    65 };
       
    66 
       
    67 #endif //#if !defined(_STACK_OUTPUT_H_)
       
    68 
       
    69 /* End. */