xref: /haiku/src/system/kernel/arch/sparc/arch_user_debugger.cpp (revision a7c23bb4a92806407b15fef56a5652326c3f8622)
1 /*
2  * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <debugger.h>
8 #include <int.h>
9 #include <thread.h>
10 #include <arch/user_debugger.h>
11 
12 
13 void
arch_clear_team_debug_info(struct arch_team_debug_info * info)14 arch_clear_team_debug_info(struct arch_team_debug_info *info)
15 {
16 }
17 
18 
19 void
arch_destroy_team_debug_info(struct arch_team_debug_info * info)20 arch_destroy_team_debug_info(struct arch_team_debug_info *info)
21 {
22 	arch_clear_team_debug_info(info);
23 }
24 
25 
26 void
arch_clear_thread_debug_info(struct arch_thread_debug_info * info)27 arch_clear_thread_debug_info(struct arch_thread_debug_info *info)
28 {
29 }
30 
31 
32 void
arch_destroy_thread_debug_info(struct arch_thread_debug_info * info)33 arch_destroy_thread_debug_info(struct arch_thread_debug_info *info)
34 {
35 	arch_clear_thread_debug_info(info);
36 }
37 
38 
39 void
arch_update_thread_single_step()40 arch_update_thread_single_step()
41 {
42 }
43 
44 
45 void
arch_set_debug_cpu_state(const debug_cpu_state * cpuState)46 arch_set_debug_cpu_state(const debug_cpu_state *cpuState)
47 {
48 }
49 
50 
51 void
arch_get_debug_cpu_state(debug_cpu_state * cpuState)52 arch_get_debug_cpu_state(debug_cpu_state *cpuState)
53 {
54 }
55 
56 
57 status_t
arch_get_thread_debug_cpu_state(Thread * thread,debug_cpu_state * cpuState)58 arch_get_thread_debug_cpu_state(Thread* thread, debug_cpu_state* cpuState)
59 {
60 	return B_UNSUPPORTED;
61 }
62 
63 
64 status_t
arch_set_breakpoint(void * address)65 arch_set_breakpoint(void *address)
66 {
67 	return B_ERROR;
68 }
69 
70 
71 status_t
arch_clear_breakpoint(void * address)72 arch_clear_breakpoint(void *address)
73 {
74 	return B_ERROR;
75 }
76 
77 
78 status_t
arch_set_watchpoint(void * address,uint32 type,int32 length)79 arch_set_watchpoint(void *address, uint32 type, int32 length)
80 {
81 	return B_ERROR;
82 }
83 
84 
85 status_t
arch_clear_watchpoint(void * address)86 arch_clear_watchpoint(void *address)
87 {
88 	return B_ERROR;
89 }
90 
91 bool
arch_has_breakpoints(struct arch_team_debug_info * info)92 arch_has_breakpoints(struct arch_team_debug_info *info)
93 {
94 	return false;
95 }
96