eapol/eapol_framework/eapol_common/am/common/stack/eap_am_stack_trace.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_common/am/common/stack/eap_am_stack_trace.h	Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,69 @@
+/*
+* Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "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:  EAP and WLAN authentication protocols.
+*
+*/
+
+
+
+
+#if !defined(_STACK_OUTPUT_H_)
+#define _STACK_OUTPUT_H_
+
+#include "eap_am_export.h"
+
+class abs_eap_am_tools_c;
+
+/**
+ * This class implemets a stack trace. This code is highly processor dependent.
+ * Only Intel processor with gcc or MSVC is supported.
+ */
+class EAP_EXPORT stack_trace
+{
+private:
+
+	/// This is pointer to the tools class.
+	abs_eap_am_tools_c * const m_am_tools;
+
+	/**
+	 * This function traces stack frames starting from bp.
+	 * The bp is pointer to base of the starting stack frame.
+	 */
+	EAP_FUNC_IMPORT void trace_frames(
+		unsigned long *bp
+		);
+
+public:
+
+	/**
+	 * Destructor does nothing special.
+	 */
+	EAP_FUNC_IMPORT virtual ~stack_trace();
+
+	/**
+	 * Constructor does nothing special.
+	 */
+	EAP_FUNC_IMPORT stack_trace(abs_eap_am_tools_c * const tools);
+
+	/**
+	 * This function traces stack frames starting from current frame.
+	 * Value of parameter memory_address is traced in the begin.
+	 */
+	EAP_FUNC_IMPORT void trace(const void * const memory_address);
+
+};
+
+#endif //#if !defined(_STACK_OUTPUT_H_)
+
+/* End. */