kernel: +arch_get_thread_debug_cpu_state()

Similar to arch_get_debug_cpu_state(), but the thread whose CPU state
to retrieve is specified. Works only for threads that aren't running,
and on x86-64 we can get the FPU state only when the thread was
interrupted in userland.
Not implemented for the incomplete architecture ports.
This commit is contained in:
Ingo Weinhold
2016-04-24 17:29:28 +02:00
parent 7a187cd629
commit 99f00556a4
5 changed files with 97 additions and 34 deletions
+8 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005-2011, Ingo Weinhold, [email protected].
* Copyright 2005-2016, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_ARCH_USER_DEBUGGER_H
@@ -19,6 +19,11 @@ extern "C" {
struct arch_team_debug_info;
struct arch_thread_debug_info;
namespace BKernel {
struct Thread;
}
using BKernel::Thread;
void arch_clear_team_debug_info(struct arch_team_debug_info *info);
void arch_destroy_team_debug_info(struct arch_team_debug_info *info);
@@ -29,6 +34,8 @@ void arch_update_thread_single_step();
void arch_set_debug_cpu_state(const debug_cpu_state *cpuState);
void arch_get_debug_cpu_state(debug_cpu_state *cpuState);
status_t arch_get_thread_debug_cpu_state(Thread *thread,
debug_cpu_state *cpuState);
status_t arch_set_breakpoint(void *address);
status_t arch_clear_breakpoint(void *address);