haiku/headers/os/arch/m68k/arch_debugger.h
Ingo Weinhold 0b11ecb18c * Always include the public arch_debugger.h headers. The structures defined
there are prefixed with the respective architecture name. Useful for remote
  debugging a different architecture.
* <x86/arch_debugger.h>: Introduced a structure for the FPU state, so that it
  isn't left to the debugger.
* Removed the _kern_get_thread_cpu_state() syscall. Was originally intended for
  bdb compatiblity, but isn't really needed.
* Kernel x86 arch_get_debug_cpu_state(): The use of fnsave was broken, since
  it reinits the FPU after saving the state. This resulted in weird results
  when debugging functions using the FPU. We now use fxsave, if available.
  Otherwise fnsave + frstor should be used -- not fully implemented yet.
  Same for arch_set_debug_cpu_state().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 22:18:39 +00:00

32 lines
513 B
C

/*
* Copyright 2005-2009, Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _ARCH_M68K_DEBUGGER_H
#define _ARCH_M68K_DEBUGGER_H
struct m68k_debug_cpu_state {
uint32 d0;
uint32 d1;
uint32 d2;
uint32 d3;
uint32 d4;
uint32 d5;
uint32 d6;
uint32 d7;
uint32 a0;
uint32 a1;
uint32 a2;
uint32 a3;
uint32 a4;
uint32 a5;
uint32 a6;
uint32 a7;
uint32 pc;
uint16 sr;
//#warning M68K: missing members!
uint32 dummy;
} __attribute__((aligned(8)));
#endif // _ARCH_M68K_DEBUGGER_H