From 08fd6d69aa1d0358c1088d7deff263d388ca1021 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 24 Feb 2005 15:46:20 +0000 Subject: [PATCH] Beginning of the x86 debugging support. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11470 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/arch/x86/Jamfile | 1 + src/kernel/core/arch/x86/arch_user_debugger.cpp | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/kernel/core/arch/x86/arch_user_debugger.cpp diff --git a/src/kernel/core/arch/x86/Jamfile b/src/kernel/core/arch/x86/Jamfile index e6a9d077ac..ba2fbe0d6d 100644 --- a/src/kernel/core/arch/x86/Jamfile +++ b/src/kernel/core/arch/x86/Jamfile @@ -20,6 +20,7 @@ KernelStaticLibrary libx86 : arch_x86.S arch_interrupts.S arch_system_info.c + arch_user_debugger.cpp bios.cpp cpuid.S : diff --git a/src/kernel/core/arch/x86/arch_user_debugger.cpp b/src/kernel/core/arch/x86/arch_user_debugger.cpp new file mode 100644 index 0000000000..3bf61e78ea --- /dev/null +++ b/src/kernel/core/arch/x86/arch_user_debugger.cpp @@ -0,0 +1,17 @@ +/* + * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net. + * Distributed under the terms of the MIT License. + */ + +#include + +#include +#include +#include + +void +arch_get_debug_cpu_state(struct debug_cpu_state *cpuState) +{ + struct iframe *frame = i386_get_current_iframe(); + memcpy(cpuState, frame, sizeof(debug_cpu_state)); +}