2012-06-13 20:45:22 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2005-2012, Haiku Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ARCH_X86_64_DEBUGGER_H
|
|
|
|
#define _ARCH_X86_64_DEBUGGER_H
|
|
|
|
|
|
|
|
|
2020-07-16 21:53:50 +03:00
|
|
|
#include <posix/arch/x86_64/signal.h>
|
2012-06-13 20:45:22 +04:00
|
|
|
|
|
|
|
|
|
|
|
struct x86_64_debug_cpu_state {
|
2020-07-16 21:53:50 +03:00
|
|
|
struct savefpu extended_registers;
|
2012-06-13 20:45:22 +04:00
|
|
|
|
|
|
|
uint64 gs;
|
|
|
|
uint64 fs;
|
|
|
|
uint64 es;
|
|
|
|
uint64 ds;
|
|
|
|
uint64 r15;
|
|
|
|
uint64 r14;
|
|
|
|
uint64 r13;
|
|
|
|
uint64 r12;
|
|
|
|
uint64 r11;
|
|
|
|
uint64 r10;
|
|
|
|
uint64 r9;
|
|
|
|
uint64 r8;
|
|
|
|
uint64 rbp;
|
|
|
|
uint64 rsi;
|
|
|
|
uint64 rdi;
|
|
|
|
uint64 rdx;
|
|
|
|
uint64 rcx;
|
|
|
|
uint64 rbx;
|
|
|
|
uint64 rax;
|
2013-07-25 23:04:25 +04:00
|
|
|
uint64 vector;
|
|
|
|
uint64 error_code;
|
2012-06-13 20:45:22 +04:00
|
|
|
uint64 rip;
|
|
|
|
uint64 cs;
|
|
|
|
uint64 rflags;
|
|
|
|
uint64 rsp;
|
|
|
|
uint64 ss;
|
|
|
|
} __attribute__((aligned(16)));
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _ARCH_X86_64_DEBUGGER_H
|