summaryrefslogtreecommitdiff
path: root/include/debug/debug_info.h
blob: 2d13662421c6ceb4549d0168ef4549ea9c14a55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Copyright (c) 2015-2016 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @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

#include <kernel.h>

#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 */