2016-04-12 05:44:11 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015-2016 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-04-12 05:44:11 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Information necessary for debugging
|
|
|
|
*
|
|
|
|
* @internal No routine is provided for getting the current exception stack
|
|
|
|
* frame as the exception handler already has knowledge of the ESF.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DEBUG_INFO_H
|
|
|
|
#define __DEBUG_INFO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-12-23 20:32:56 +08:00
|
|
|
#include <kernel.h>
|
2016-04-12 05:44:11 +08:00
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get the current interrupt stack frame
|
|
|
|
*
|
|
|
|
* @details This routine (only called from an ISR) returns a
|
|
|
|
* pointer to the current interrupt stack frame.
|
|
|
|
*
|
|
|
|
* @return pointer the current interrupt stack frame
|
|
|
|
*/
|
|
|
|
extern NANO_ISF *sys_debug_current_isf_get(void);
|
|
|
|
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __DEBUG_INFO_H */
|