Zephyr API 3.6.99
Loading...
Searching...
No Matches
gdbstub.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_
13#define ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_
14
15#ifndef _ASMLANGUAGE
16
17#include <stdint.h>
18#include <zephyr/toolchain.h>
19
23#define GDB_STUB_NUM_REGISTERS 16
24
53
77
78struct gdb_ctx {
79 unsigned int exception;
81};
82
83#endif /* _ASMLANGUAGE */
84
85#endif /* ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_ */
GDB_REGISTER
IA-32 register used in gdbstub.
Definition gdbstub.h:58
@ GDB_EBP
Definition gdbstub.h:64
@ GDB_ORIG_EAX
Definition gdbstub.h:75
@ GDB_ESI
Definition gdbstub.h:65
@ GDB_SS
Definition gdbstub.h:70
@ GDB_EDX
Definition gdbstub.h:61
@ GDB_PC
Definition gdbstub.h:67
@ GDB_FS
Definition gdbstub.h:73
@ GDB_EFLAGS
Definition gdbstub.h:68
@ GDB_GS
Definition gdbstub.h:74
@ GDB_ES
Definition gdbstub.h:72
@ GDB_EAX
Definition gdbstub.h:59
@ GDB_EBX
Definition gdbstub.h:62
@ GDB_ECX
Definition gdbstub.h:60
@ GDB_DS
Definition gdbstub.h:71
@ GDB_CS
Definition gdbstub.h:69
@ GDB_EDI
Definition gdbstub.h:66
@ GDB_ESP
Definition gdbstub.h:63
#define GDB_STUB_NUM_REGISTERS
Number of register used by gdbstub in IA-32.
Definition gdbstub.h:23
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Architecture specific GDB context.
Definition gdbstub.h:61
unsigned int registers[GDB_NUM_REGS]
Definition gdbstub.h:64
unsigned int exception
Exception reason.
Definition gdbstub.h:63
GDB interruption context.
Definition gdbstub.h:33
uint32_t error_code
Definition gdbstub.h:48
uint32_t es
Definition gdbstub.h:37
uint32_t eflags
Definition gdbstub.h:51
uint32_t edx
Definition gdbstub.h:44
uint32_t eip
Definition gdbstub.h:49
uint32_t ebx
Definition gdbstub.h:43
uint32_t esp
Definition gdbstub.h:42
uint32_t edi
Definition gdbstub.h:39
uint32_t esi
Definition gdbstub.h:40
uint32_t fs
Definition gdbstub.h:36
uint32_t ss
Definition gdbstub.h:34
uint32_t gs
Definition gdbstub.h:35
uint32_t ebp
Definition gdbstub.h:41
uint32_t cs
Definition gdbstub.h:50
uint32_t eax
Definition gdbstub.h:46
uint32_t ecx
Definition gdbstub.h:45
uint32_t vector
Definition gdbstub.h:47
uint32_t ds
Definition gdbstub.h:38
Macros to abstract toolchain specific capabilities.