lwp_dbg.h 698 B

1234567891011121314151617181920212223242526272829
  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. #ifndef __LWP_DBG_H__
  11. #define __LWP_DBG_H__
  12. #include <rtthread.h>
  13. #include <rthw.h>
  14. #include <lwp.h>
  15. int dbg_thread_in_debug(void);
  16. void dbg_register(struct dbg_ops_t *dbg_ops);
  17. uint32_t dbg_get_ins(void);
  18. void dbg_activate_step(void);
  19. void dbg_deactivate_step(void);
  20. int dbg_check_event(struct rt_hw_exp_stack *regs, unsigned long esr);
  21. rt_channel_t gdb_server_channel(void);
  22. int dbg_step_type(void);
  23. void dbg_attach_req(void *pc);
  24. int dbg_check_suspend(void);
  25. #endif /* __LWP_DBG_H__ */