xref: /haiku/headers/private/kernel/arch/user_debugger.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef KERNEL_ARCH_USER_DEBUGGER_H
6 #define KERNEL_ARCH_USER_DEBUGGER_H
7 
8 #include <debugger.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct arch_team_debug_info;
15 struct arch_thread_debug_info;
16 
17 void arch_clear_team_debug_info(struct arch_team_debug_info *info);
18 void arch_destroy_team_debug_info(struct arch_team_debug_info *info);
19 void arch_clear_thread_debug_info(struct arch_thread_debug_info *info);
20 void arch_destroy_thread_debug_info(struct arch_thread_debug_info *info);
21 
22 void arch_set_debug_cpu_state(const struct debug_cpu_state *cpuState);
23 void arch_get_debug_cpu_state(struct debug_cpu_state *cpuState);
24 
25 status_t arch_set_breakpoint(void *address);
26 status_t arch_clear_breakpoint(void *address);
27 status_t arch_set_watchpoint(void *address, uint32 type, int32 length);
28 status_t arch_clear_watchpoint(void *address);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #include <arch_user_debugger.h>
35 
36 #endif	// KERNEL_ARCH_USER_DEBUGGER_H
37