Beginning of the x86 debugging support.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11470 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c7eab67fe1
commit
08fd6d69aa
@ -20,6 +20,7 @@ KernelStaticLibrary libx86 :
|
||||
arch_x86.S
|
||||
arch_interrupts.S
|
||||
arch_system_info.c
|
||||
arch_user_debugger.cpp
|
||||
bios.cpp
|
||||
cpuid.S
|
||||
:
|
||||
|
17
src/kernel/core/arch/x86/arch_user_debugger.cpp
Normal file
17
src/kernel/core/arch/x86/arch_user_debugger.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2005, Ingo Weinhold, bonefish@users.sf.net.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <debugger.h>
|
||||
#include <arch/user_debugger.h>
|
||||
#include <arch/thread.h>
|
||||
|
||||
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));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user