1 /*
2  * Copyright (c) 2006-2023, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2023-07-11     RT-Thread    first version
9  */
10 
11 #ifndef __LWP_DBG_H__
12 #define __LWP_DBG_H__
13 
14 #include <rtthread.h>
15 #include <rthw.h>
16 #include <lwp.h>
17 
18 int dbg_thread_in_debug(void);
19 void dbg_register(struct dbg_ops_t *dbg_ops);
20 uint32_t dbg_get_ins(void);
21 void dbg_activate_step(void);
22 void dbg_deactivate_step(void);
23 int dbg_check_event(struct rt_hw_exp_stack *regs, unsigned long esr);
24 rt_channel_t gdb_server_channel(void);
25 int dbg_step_type(void);
26 void dbg_attach_req(void *pc);
27 int dbg_check_suspend(void);
28 
29 #endif /* __LWP_DBG_H__ */
30