1 /* 2 * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _ARCH_X86_DEBUGGER_H 6 #define _ARCH_X86_DEBUGGER_H 7 8 struct debug_cpu_state { 9 uint8 extended_regs[512]; 10 11 uint32 gs; 12 uint32 fs; 13 uint32 es; 14 uint32 ds; 15 uint32 edi; 16 uint32 esi; 17 uint32 ebp; 18 uint32 esp; 19 uint32 ebx; 20 uint32 edx; 21 uint32 ecx; 22 uint32 eax; 23 uint32 vector; 24 uint32 error_code; 25 uint32 eip; 26 uint32 cs; 27 uint32 eflags; 28 uint32 user_esp; 29 uint32 user_ss; 30 } __attribute__((aligned(8))); 31 32 #endif // _ARCH_X86_DEBUGGER_H 33