Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
33
struct
gdb_interrupt_ctx
{
34
uint32_t
ss
;
35
uint32_t
gs
;
36
uint32_t
fs
;
37
uint32_t
es
;
38
uint32_t
ds
;
39
uint32_t
edi
;
40
uint32_t
esi
;
41
uint32_t
ebp
;
42
uint32_t
esp
;
43
uint32_t
ebx
;
44
uint32_t
edx
;
45
uint32_t
ecx
;
46
uint32_t
eax
;
47
uint32_t
vector
;
48
uint32_t
error_code
;
49
uint32_t
eip
;
50
uint32_t
cs
;
51
uint32_t
eflags
;
52
} __packed;
53
58
enum
GDB_REGISTER
{
59
GDB_EAX
,
60
GDB_ECX
,
61
GDB_EDX
,
62
GDB_EBX
,
63
GDB_ESP
,
64
GDB_EBP
,
65
GDB_ESI
,
66
GDB_EDI
,
67
GDB_PC
,
68
GDB_EFLAGS
,
69
GDB_CS
,
70
GDB_SS
,
71
GDB_DS
,
72
GDB_ES
,
73
GDB_FS
,
74
GDB_GS
,
75
GDB_ORIG_EAX
= 41,
76
};
77
78
struct
gdb_ctx
{
79
unsigned
int
exception
;
80
unsigned
int
registers
[
GDB_STUB_NUM_REGISTERS
];
81
};
82
83
#endif
/* _ASMLANGUAGE */
84
85
#endif
/* ZEPHYR_INCLUDE_ARCH_X86_GDBSTUB_SYS_H_ */
GDB_REGISTER
GDB_REGISTER
IA-32 register used in gdbstub.
Definition:
gdbstub.h:58
GDB_EBP
@ GDB_EBP
Definition:
gdbstub.h:64
GDB_ORIG_EAX
@ GDB_ORIG_EAX
Definition:
gdbstub.h:75
GDB_ESI
@ GDB_ESI
Definition:
gdbstub.h:65
GDB_SS
@ GDB_SS
Definition:
gdbstub.h:70
GDB_EDX
@ GDB_EDX
Definition:
gdbstub.h:61
GDB_PC
@ GDB_PC
Definition:
gdbstub.h:67
GDB_FS
@ GDB_FS
Definition:
gdbstub.h:73
GDB_EFLAGS
@ GDB_EFLAGS
Definition:
gdbstub.h:68
GDB_GS
@ GDB_GS
Definition:
gdbstub.h:74
GDB_ES
@ GDB_ES
Definition:
gdbstub.h:72
GDB_EAX
@ GDB_EAX
Definition:
gdbstub.h:59
GDB_EBX
@ GDB_EBX
Definition:
gdbstub.h:62
GDB_ECX
@ GDB_ECX
Definition:
gdbstub.h:60
GDB_DS
@ GDB_DS
Definition:
gdbstub.h:71
GDB_CS
@ GDB_CS
Definition:
gdbstub.h:69
GDB_EDI
@ GDB_EDI
Definition:
gdbstub.h:66
GDB_ESP
@ GDB_ESP
Definition:
gdbstub.h:63
GDB_STUB_NUM_REGISTERS
#define GDB_STUB_NUM_REGISTERS
Number of register used by gdbstub in IA-32.
Definition:
gdbstub.h:23
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:90
gdb_ctx
Definition:
gdbstub.h:78
gdb_ctx::registers
unsigned int registers[16]
Definition:
gdbstub.h:80
gdb_ctx::exception
unsigned int exception
Definition:
gdbstub.h:79
gdb_interrupt_ctx
GDB interruption context.
Definition:
gdbstub.h:33
gdb_interrupt_ctx::error_code
uint32_t error_code
Definition:
gdbstub.h:48
gdb_interrupt_ctx::es
uint32_t es
Definition:
gdbstub.h:37
gdb_interrupt_ctx::eflags
uint32_t eflags
Definition:
gdbstub.h:51
gdb_interrupt_ctx::edx
uint32_t edx
Definition:
gdbstub.h:44
gdb_interrupt_ctx::eip
uint32_t eip
Definition:
gdbstub.h:49
gdb_interrupt_ctx::ebx
uint32_t ebx
Definition:
gdbstub.h:43
gdb_interrupt_ctx::esp
uint32_t esp
Definition:
gdbstub.h:42
gdb_interrupt_ctx::edi
uint32_t edi
Definition:
gdbstub.h:39
gdb_interrupt_ctx::esi
uint32_t esi
Definition:
gdbstub.h:40
gdb_interrupt_ctx::fs
uint32_t fs
Definition:
gdbstub.h:36
gdb_interrupt_ctx::ss
uint32_t ss
Definition:
gdbstub.h:34
gdb_interrupt_ctx::gs
uint32_t gs
Definition:
gdbstub.h:35
gdb_interrupt_ctx::ebp
uint32_t ebp
Definition:
gdbstub.h:41
gdb_interrupt_ctx::cs
uint32_t cs
Definition:
gdbstub.h:50
gdb_interrupt_ctx::eax
uint32_t eax
Definition:
gdbstub.h:46
gdb_interrupt_ctx::ecx
uint32_t ecx
Definition:
gdbstub.h:45
gdb_interrupt_ctx::vector
uint32_t vector
Definition:
gdbstub.h:47
gdb_interrupt_ctx::ds
uint32_t ds
Definition:
gdbstub.h:38
toolchain.h
Macros to abstract toolchain specific capabilities.
zephyr
arch
x86
ia32
gdbstub.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6