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:
@@ -20,6 +20,7 @@ KernelStaticLibrary libx86 :
|
|||||||
arch_x86.S
|
arch_x86.S
|
||||||
arch_interrupts.S
|
arch_interrupts.S
|
||||||
arch_system_info.c
|
arch_system_info.c
|
||||||
|
arch_user_debugger.cpp
|
||||||
bios.cpp
|
bios.cpp
|
||||||
cpuid.S
|
cpuid.S
|
||||||
:
|
:
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2005, Ingo Weinhold, [email protected].
|
||||||
|
* 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));
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user