GDB (xrefs)
Loading...
Searching...
No Matches
i386-tdep.h
Go to the documentation of this file.
1/* Target-dependent code for the i386.
2
3 Copyright (C) 2001-2023 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
20#ifndef I386_TDEP_H
21#define I386_TDEP_H
22
23#include "gdbarch.h"
24#include "infrun.h"
25#include "expression.h"
26#include "gdbsupport/x86-xstate.h"
27
28class frame_info_ptr;
29struct gdbarch;
30struct reggroup;
31struct regset;
32struct regcache;
33
34/* GDB's i386 target supports both the 32-bit Intel Architecture
35 (IA-32) and the 64-bit AMD x86-64 architecture. Internally it uses
36 a similar register layout for both.
37
38 - General purpose registers
39 - FPU data registers
40 - FPU control registers
41 - SSE data registers
42 - SSE control register
43
44 The general purpose registers for the x86-64 architecture are quite
45 different from IA-32. Therefore, gdbarch_fp0_regnum
46 determines the register number at which the FPU data registers
47 start. The number of FPU data and control registers is the same
48 for both architectures. The number of SSE registers however,
49 differs and is determined by the num_xmm_regs member of `struct
50 gdbarch_tdep'. */
51
52/* Convention for returning structures. */
53
54enum struct_return
55{
56 pcc_struct_return, /* Return "short" structures in memory. */
57 reg_struct_return /* Return "short" structures in registers. */
58};
59
60/* i386 architecture specific information. */
62{
63 /* General-purpose registers. */
66 size_t sizeof_gregset = 0;
67
68 /* Floating-point registers. */
69 size_t sizeof_fpregset = 0;
70
71 /* Register number for %st(0). The register numbers for the other
72 registers follow from this one. Set this to -1 to indicate the
73 absence of an FPU. */
74 int st0_regnum = 0;
75
76 /* Number of MMX registers. */
77 int num_mmx_regs = 0;
78
79 /* Register number for %mm0. Set this to -1 to indicate the absence
80 of MMX support. */
81 int mm0_regnum = 0;
82
83 /* Number of pseudo YMM registers. */
84 int num_ymm_regs = 0;
85
86 /* Register number for %ymm0. Set this to -1 to indicate the absence
87 of pseudo YMM register support. */
88 int ymm0_regnum = 0;
89
90 /* Number of AVX512 OpMask registers (K-registers) */
91 int num_k_regs = 0;
92
93 /* Register number for %k0. Set this to -1 to indicate the absence
94 of AVX512 OpMask register support. */
95 int k0_regnum = 0;
96
97 /* Number of pseudo ZMM registers ($zmm0-$zmm31). */
98 int num_zmm_regs = 0;
99
100 /* Register number for %zmm0. Set this to -1 to indicate the absence
101 of pseudo ZMM register support. */
102 int zmm0_regnum = 0;
103
104 /* Number of byte registers. */
106
107 /* Register pseudo number for %al. */
108 int al_regnum = 0;
109
110 /* Number of pseudo word registers. */
112
113 /* Register number for %ax. */
114 int ax_regnum = 0;
115
116 /* Number of pseudo dword registers. */
118
119 /* Register number for %eax. Set this to -1 to indicate the absence
120 of pseudo dword register support. */
121 int eax_regnum = 0;
122
123 /* Number of core registers. */
125
126 /* Number of SSE registers. */
128
129 /* Number of SSE registers added in AVX512. */
131
132 /* Register number of XMM16, the first XMM register added in AVX512. */
134
135 /* Number of YMM registers added in AVX512. */
137
138 /* Register number of YMM16, the first YMM register added in AVX512. */
140
141 /* Bits of the extended control register 0 (the XFEATURE_ENABLED_MASK
142 register), excluding the x87 bit, which are supported by this GDB. */
143
144 uint64_t xcr0 = 0;
145
146 /* Offset of XCR0 in XSAVE extended state. */
148
149 /* Layout of the XSAVE area extended region. */
150 x86_xsave_layout xsave_layout;
151
152 /* Register names. */
153 const char * const *register_names = nullptr;
154
155 /* Register number for %ymm0h. Set this to -1 to indicate the absence
156 of upper YMM register support. */
158
159 /* Upper YMM register names. Only used for tdesc_numbered_register. */
160 const char * const *ymmh_register_names = nullptr;
161
162 /* Register number for %ymm16h. Set this to -1 to indicate the absence
163 of support for YMM16-31. */
165
166 /* YMM16-31 register names. Only used for tdesc_numbered_register. */
167 const char * const *ymm16h_register_names = nullptr;
168
169 /* Register number for %bnd0r. Set this to -1 to indicate the absence
170 bound registers. */
172
173 /* Register number for pseudo register %bnd0. Set this to -1 to indicate the absence
174 bound registers. */
175 int bnd0_regnum = 0;
176
177 /* Register number for %bndcfgu. Set this to -1 to indicate the absence
178 bound control registers. */
180
181 /* MPX register names. Only used for tdesc_numbered_register. */
182 const char * const *mpx_register_names = nullptr;
183
184 /* Register number for %zmm0h. Set this to -1 to indicate the absence
185 of ZMM_HI256 register support. */
187
188 /* OpMask register names. */
189 const char * const *k_register_names = nullptr;
190
191 /* ZMM register names. Only used for tdesc_numbered_register. */
192 const char * const *zmmh_register_names = nullptr;
193
194 /* XMM16-31 register names. Only used for tdesc_numbered_register. */
195 const char * const *xmm_avx512_register_names = nullptr;
196
197 /* YMM16-31 register names. Only used for tdesc_numbered_register. */
198 const char * const *ymm_avx512_register_names = nullptr;
199
200 /* Number of PKEYS registers. */
202
203 /* Register number for PKRU register. */
204 int pkru_regnum = 0;
205
206 /* PKEYS register names. */
207 const char * const *pkeys_register_names = nullptr;
208
209 /* Register number for %fsbase. Set this to -1 to indicate the
210 absence of segment base registers. */
212
213 /* Target description. */
214 const struct target_desc *tdesc = nullptr;
215
216 /* Register group function. */
218
219 /* Offset of saved PC in jmp_buf. */
221
222 /* Convention for returning structures. */
223 enum struct_return struct_return {};
224
225 /* Address range where sigtramp lives. */
226 CORE_ADDR sigtramp_start = 0;
227 CORE_ADDR sigtramp_end = 0;
228
229 /* Detect sigtramp. */
230 int (*sigtramp_p) (frame_info_ptr) = nullptr;
231
232 /* Get address of sigcontext for sigtramp. */
233 CORE_ADDR (*sigcontext_addr) (frame_info_ptr) = nullptr;
234
235 /* Offset of registers in `struct sigcontext'. */
237 int sc_num_regs = 0;
238
239 /* Offset of saved PC and SP in `struct sigcontext'. Usage of these
240 is deprecated, please use `sc_reg_offset' instead. */
243
244 /* ISA-specific data types. */
245 struct type *i386_mmx_type = nullptr;
246 struct type *i386_ymm_type = nullptr;
247 struct type *i386_zmm_type = nullptr;
248 struct type *i387_ext_type = nullptr;
249 struct type *i386_bnd_type = nullptr;
250
251 /* Process record/replay target. */
252 /* The map for registers because the AMD64's registers order
253 in GDB is not same as I386 instructions. */
254 const int *record_regmap = nullptr;
255 /* Parse intx80 args. */
256 int (*i386_intx80_record) (struct regcache *regcache) = nullptr;
257 /* Parse sysenter args. */
258 int (*i386_sysenter_record) (struct regcache *regcache) = nullptr;
259 /* Parse syscall args. */
260 int (*i386_syscall_record) (struct regcache *regcache) = nullptr;
261
262 /* Regsets. */
263 const struct regset *fpregset = nullptr;
264};
265
266/* Floating-point registers. */
267
268/* All FPU control registers (except for FIOFF and FOOFF) are 16-bit
269 (at most) in the FPU, but are zero-extended to 32 bits in GDB's
270 register cache. */
271
272/* Return non-zero if REGNUM matches the FP register and the FP
273 register set is active. */
274extern int i386_fp_regnum_p (struct gdbarch *, int);
275extern int i386_fpc_regnum_p (struct gdbarch *, int);
276
277/* Register numbers of various important registers. */
278
313
314/* Register numbers of RECORD_REGMAP. */
315
343
344#define I386_NUM_GREGS 16
345#define I386_NUM_XREGS 9
346
347#define I386_SSE_NUM_REGS (I386_MXCSR_REGNUM + 1)
348#define I386_AVX_NUM_REGS (I386_YMM7H_REGNUM + 1)
349#define I386_MPX_NUM_REGS (I386_BNDSTATUS_REGNUM + 1)
350#define I386_AVX512_NUM_REGS (I386_ZMM7H_REGNUM + 1)
351#define I386_PKEYS_NUM_REGS (I386_PKRU_REGNUM + 1)
352#define I386_NUM_REGS (I386_GSBASE_REGNUM + 1)
353
354/* Size of the largest register. */
355#define I386_MAX_REGISTER_SIZE 64
356
357/* Types for i386-specific registers. */
358extern struct type *i387_ext_type (struct gdbarch *gdbarch);
359
360/* Checks of different registers. */
361extern int i386_byte_regnum_p (struct gdbarch *gdbarch, int regnum);
362extern int i386_word_regnum_p (struct gdbarch *gdbarch, int regnum);
363extern int i386_dword_regnum_p (struct gdbarch *gdbarch, int regnum);
364extern int i386_xmm_regnum_p (struct gdbarch *gdbarch, int regnum);
365extern int i386_xmm_avx512_regnum_p (struct gdbarch * gdbarch, int regnum);
366extern int i386_ymm_regnum_p (struct gdbarch *gdbarch, int regnum);
367extern int i386_ymm_avx512_regnum_p (struct gdbarch *gdbarch, int regnum);
368extern int i386_bnd_regnum_p (struct gdbarch *gdbarch, int regnum);
369extern int i386_k_regnum_p (struct gdbarch *gdbarch, int regnum);
370extern int i386_zmm_regnum_p (struct gdbarch *gdbarch, int regnum);
371extern int i386_zmmh_regnum_p (struct gdbarch *gdbarch, int regnum);
372extern bool i386_pkru_regnum_p (struct gdbarch *gdbarch, int regnum);
373
374extern const char *i386_pseudo_register_name (struct gdbarch *gdbarch,
375 int regnum);
376extern struct type *i386_pseudo_register_type (struct gdbarch *gdbarch,
377 int regnum);
378
381 int regnum,
382 struct value *result);
383
384extern void i386_pseudo_register_write (struct gdbarch *gdbarch,
385 struct regcache *regcache,
386 int regnum, const gdb_byte *buf);
387
389 struct agent_expr *ax,
390 int regnum);
391
392/* Segment selectors. */
393#define I386_SEL_RPL 0x0003 /* Requester's Privilege Level mask. */
394#define I386_SEL_UPL 0x0003 /* User Privilege Level. */
395#define I386_SEL_KPL 0x0000 /* Kernel Privilege Level. */
396
397/* The length of the longest i386 instruction (according to
398 include/asm-i386/kprobes.h in Linux 2.6. */
399#define I386_MAX_INSN_LEN (16)
400
401/* Functions exported from i386-tdep.c. */
402extern CORE_ADDR i386_pe_skip_trampoline_code (frame_info_ptr frame,
403 CORE_ADDR pc, char *name);
404extern CORE_ADDR i386_skip_main_prologue (struct gdbarch *gdbarch,
405 CORE_ADDR pc);
406
407/* The "push_dummy_call" gdbarch method, optionally with the thiscall
408 calling convention. */
409extern CORE_ADDR i386_thiscall_push_dummy_call (struct gdbarch *gdbarch,
410 struct value *function,
411 struct regcache *regcache,
412 CORE_ADDR bp_addr,
413 int nargs, struct value **args,
414 CORE_ADDR sp,
416 return_method,
417 CORE_ADDR struct_addr,
418 bool thiscall);
419
420/* Return whether the THIS_FRAME corresponds to a sigtramp routine. */
421extern int i386_sigtramp_p (frame_info_ptr this_frame);
422
423/* Return non-zero if REGNUM is a member of the specified group. */
424extern int i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
425 const struct reggroup *group);
426
427/* Supply register REGNUM from the general-purpose register set REGSET
428 to register cache REGCACHE. If REGNUM is -1, do this for all
429 registers in REGSET. */
430extern void i386_supply_gregset (const struct regset *regset,
431 struct regcache *regcache, int regnum,
432 const void *gregs, size_t len);
433
434/* General-purpose register set. */
435extern const struct regset i386_gregset;
436
437/* Floating-point register set. */
438extern const struct regset i386_fpregset;
439
440/* Default iterator over core file register note sections. */
441extern void
444 void *cb_data,
445 const struct regcache *regcache);
446
449
451 (struct gdbarch *gdbarch, CORE_ADDR from, CORE_ADDR to,
452 struct regcache *regs);
455 CORE_ADDR from, CORE_ADDR to, regcache *regs, bool completed_p);
456
457/* Initialize a basic ELF architecture variant. */
458extern void i386_elf_init_abi (struct gdbarch_info, struct gdbarch *);
459
460/* Initialize a SVR4 architecture variant. */
461extern void i386_svr4_init_abi (struct gdbarch_info, struct gdbarch *);
462
463/* Convert SVR4 register number REG to the appropriate register number
464 used by GDB. */
465extern int i386_svr4_reg_to_regnum (struct gdbarch *gdbarch, int reg);
466
467extern int i386_process_record (struct gdbarch *gdbarch,
468 struct regcache *regcache, CORE_ADDR addr);
469extern const struct target_desc *i386_target_description (uint64_t xcr0,
470 bool segments);
471
472/* Return true iff the current target is MPX enabled. */
473extern int i386_mpx_enabled (void);
474
475
476/* Functions and variables exported from i386-bsd-tdep.c. */
477
478extern void i386bsd_init_abi (struct gdbarch_info, struct gdbarch *);
479extern CORE_ADDR i386obsd_sigtramp_start_addr;
480extern CORE_ADDR i386obsd_sigtramp_end_addr;
481extern int i386obsd_sc_reg_offset[];
482extern int i386bsd_sc_reg_offset[];
483
484/* SystemTap related functions. */
485
487 const char *s);
488
490 (struct gdbarch *gdbarch, struct stap_parse_info *p);
491
492#endif /* i386-tdep.h */
int regnum
const char *const name
@ pcc_struct_return
Definition arm-tdep.h:85
@ reg_struct_return
Definition arm-tdep.h:86
std::unique_ptr< displaced_step_copy_insn_closure > displaced_step_copy_insn_closure_up
int gdbarch_register_reggroup_p_ftype(struct gdbarch *gdbarch, int regnum, const struct reggroup *reggroup)
void iterate_over_regset_sections_cb(const char *sect_name, int supply_size, int collect_size, const struct regset *regset, const char *human_name, void *cb_data)
Definition gdbarch.h:104
function_call_return_method
Definition gdbarch.h:114
int i386_svr4_reg_to_regnum(struct gdbarch *gdbarch, int reg)
Definition i386-tdep.c:578
void i386_iterate_over_regset_sections(struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
Definition i386-tdep.c:4055
bool i386_pkru_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:427
void i386_displaced_step_fixup(struct gdbarch *gdbarch, displaced_step_copy_insn_closure *closure, CORE_ADDR from, CORE_ADDR to, regcache *regs, bool completed_p)
Definition i386-tdep.c:843
int i386_process_record(struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
Definition i386-tdep.c:5112
int i386_sigtramp_p(frame_info_ptr this_frame)
Definition i386-tdep.c:4104
int i386_bnd_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:317
int i386bsd_sc_reg_offset[]
int i386_zmm_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:235
struct type * i387_ext_type(struct gdbarch *gdbarch)
Definition i386-tdep.c:3152
const char * i386_pseudo_register_name(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:463
CORE_ADDR i386obsd_sigtramp_end_addr
int i386_register_reggroup_p(struct gdbarch *gdbarch, int regnum, const struct reggroup *group)
Definition i386-tdep.c:4604
int i386_fpc_regnum_p(struct gdbarch *, int)
Definition i386-tdep.c:385
const struct regset i386_fpregset
Definition i386-tdep.c:4047
int i386_stap_is_single_operand(struct gdbarch *gdbarch, const char *s)
Definition i386-tdep.c:4174
int i386_dword_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:207
CORE_ADDR i386obsd_sigtramp_start_addr
const struct regset i386_gregset
Definition i386-tdep.c:4042
i386_regnum
Definition i386-tdep.h:280
@ I386_YMM7H_REGNUM
Definition i386-tdep.h:300
@ I386_GSBASE_REGNUM
Definition i386-tdep.h:311
@ I386_PKRU_REGNUM
Definition i386-tdep.h:309
@ I386_EFLAGS_REGNUM
Definition i386-tdep.h:290
@ I386_ESI_REGNUM
Definition i386-tdep.h:287
@ I386_ST0_REGNUM
Definition i386-tdep.h:297
@ I386_FS_REGNUM
Definition i386-tdep.h:295
@ I386_BNDSTATUS_REGNUM
Definition i386-tdep.h:304
@ I386_MXCSR_REGNUM
Definition i386-tdep.h:298
@ I386_ZMM0H_REGNUM
Definition i386-tdep.h:307
@ I386_BND0R_REGNUM
Definition i386-tdep.h:301
@ I386_YMM0H_REGNUM
Definition i386-tdep.h:299
@ I386_ECX_REGNUM
Definition i386-tdep.h:282
@ I386_BND3R_REGNUM
Definition i386-tdep.h:302
@ I386_GS_REGNUM
Definition i386-tdep.h:296
@ I386_EIP_REGNUM
Definition i386-tdep.h:289
@ I386_EBP_REGNUM
Definition i386-tdep.h:286
@ I386_ES_REGNUM
Definition i386-tdep.h:294
@ I386_CS_REGNUM
Definition i386-tdep.h:291
@ I386_EAX_REGNUM
Definition i386-tdep.h:281
@ I386_SS_REGNUM
Definition i386-tdep.h:292
@ I386_BNDCFGU_REGNUM
Definition i386-tdep.h:303
@ I386_EDX_REGNUM
Definition i386-tdep.h:283
@ I386_K0_REGNUM
Definition i386-tdep.h:305
@ I386_ESP_REGNUM
Definition i386-tdep.h:285
@ I386_EBX_REGNUM
Definition i386-tdep.h:284
@ I386_K7_REGNUM
Definition i386-tdep.h:306
@ I386_ZMM7H_REGNUM
Definition i386-tdep.h:308
@ I386_DS_REGNUM
Definition i386-tdep.h:293
@ I386_EDI_REGNUM
Definition i386-tdep.h:288
@ I386_FSBASE_REGNUM
Definition i386-tdep.h:310
int i386_ymm_avx512_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:302
int i386_k_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:248
void i386_elf_init_abi(struct gdbarch_info, struct gdbarch *)
Definition i386-tdep.c:4530
const struct target_desc * i386_target_description(uint64_t xcr0, bool segments)
Definition i386-tdep.c:8957
void i386_svr4_init_abi(struct gdbarch_info, struct gdbarch *)
Definition i386-tdep.c:4563
int i386_ymm_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:276
int i386_fp_regnum_p(struct gdbarch *, int)
Definition i386-tdep.c:373
void i386bsd_init_abi(struct gdbarch_info, struct gdbarch *)
void i386_pseudo_register_write(struct gdbarch *gdbarch, struct regcache *regcache, int regnum, const gdb_byte *buf)
Definition i386-tdep.c:3614
CORE_ADDR i386_thiscall_push_dummy_call(struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, function_call_return_method return_method, CORE_ADDR struct_addr, bool thiscall)
Definition i386-tdep.c:2730
displaced_step_copy_insn_closure_up i386_displaced_step_copy_insn(struct gdbarch *gdbarch, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
Definition i386-tdep.c:806
CORE_ADDR i386_pe_skip_trampoline_code(frame_info_ptr frame, CORE_ADDR pc, char *name)
Definition i386-tdep.c:4073
int i386obsd_sc_reg_offset[]
buf_displaced_step_copy_insn_closure i386_displaced_step_copy_insn_closure
Definition i386-tdep.h:448
int i386_xmm_avx512_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:347
struct_return
Definition i386-tdep.h:55
CORE_ADDR i386_skip_main_prologue(struct gdbarch *gdbarch, CORE_ADDR pc)
Definition i386-tdep.c:1934
int i386_byte_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:185
int i386_xmm_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:332
record_i386_regnum
Definition i386-tdep.h:317
@ X86_RECORD_REAX_REGNUM
Definition i386-tdep.h:318
@ X86_RECORD_REDX_REGNUM
Definition i386-tdep.h:320
@ X86_RECORD_RECX_REGNUM
Definition i386-tdep.h:319
@ X86_RECORD_SS_REGNUM
Definition i386-tdep.h:337
@ X86_RECORD_GS_REGNUM
Definition i386-tdep.h:341
@ X86_RECORD_REBP_REGNUM
Definition i386-tdep.h:323
@ X86_RECORD_REBX_REGNUM
Definition i386-tdep.h:321
@ X86_RECORD_R14_REGNUM
Definition i386-tdep.h:332
@ X86_RECORD_R13_REGNUM
Definition i386-tdep.h:331
@ X86_RECORD_EFLAGS_REGNUM
Definition i386-tdep.h:335
@ X86_RECORD_R15_REGNUM
Definition i386-tdep.h:333
@ X86_RECORD_CS_REGNUM
Definition i386-tdep.h:336
@ X86_RECORD_ES_REGNUM
Definition i386-tdep.h:339
@ X86_RECORD_REIP_REGNUM
Definition i386-tdep.h:334
@ X86_RECORD_R9_REGNUM
Definition i386-tdep.h:327
@ X86_RECORD_R10_REGNUM
Definition i386-tdep.h:328
@ X86_RECORD_DS_REGNUM
Definition i386-tdep.h:338
@ X86_RECORD_RESP_REGNUM
Definition i386-tdep.h:322
@ X86_RECORD_RESI_REGNUM
Definition i386-tdep.h:324
@ X86_RECORD_R11_REGNUM
Definition i386-tdep.h:329
@ X86_RECORD_R12_REGNUM
Definition i386-tdep.h:330
@ X86_RECORD_REDI_REGNUM
Definition i386-tdep.h:325
@ X86_RECORD_R8_REGNUM
Definition i386-tdep.h:326
@ X86_RECORD_FS_REGNUM
Definition i386-tdep.h:340
int i386_ax_pseudo_register_collect(struct gdbarch *gdbarch, struct agent_expr *ax, int regnum)
Definition i386-tdep.c:3737
void i386_pseudo_register_read_into_value(struct gdbarch *gdbarch, readable_regcache *regcache, int regnum, struct value *result)
Definition i386-tdep.c:3419
expr::operation_up i386_stap_parse_special_token(struct gdbarch *gdbarch, struct stap_parse_info *p)
Definition i386-tdep.c:4462
void i386_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition i386-tdep.c:3953
int i386_word_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:196
int i386_zmmh_regnum_p(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:222
int i386_mpx_enabled(void)
Definition i386-tdep.c:9000
struct type * i386_pseudo_register_type(struct gdbarch *gdbarch, int regnum)
Definition i386-tdep.c:3366
std::unique_ptr< operation > operation_up
Definition expression.h:82
const char *const * mpx_register_names
Definition i386-tdep.h:182
struct type * i386_bnd_type
Definition i386-tdep.h:249
const struct regset * fpregset
Definition i386-tdep.h:263
int * gregset_reg_offset
Definition i386-tdep.h:64
const char *const * ymm_avx512_register_names
Definition i386-tdep.h:198
const char *const * zmmh_register_names
Definition i386-tdep.h:192
struct type * i387_ext_type
Definition i386-tdep.h:248
int(* i386_syscall_record)(struct regcache *regcache)
Definition i386-tdep.h:260
const char *const * k_register_names
Definition i386-tdep.h:189
struct type * i386_mmx_type
Definition i386-tdep.h:245
int(* i386_intx80_record)(struct regcache *regcache)
Definition i386-tdep.h:256
const char *const * register_names
Definition i386-tdep.h:153
int(* sigtramp_p)(frame_info_ptr)
Definition i386-tdep.h:230
CORE_ADDR sigtramp_end
Definition i386-tdep.h:227
size_t sizeof_fpregset
Definition i386-tdep.h:69
CORE_ADDR sigtramp_start
Definition i386-tdep.h:226
const char *const * xmm_avx512_register_names
Definition i386-tdep.h:195
x86_xsave_layout xsave_layout
Definition i386-tdep.h:150
gdbarch_register_reggroup_p_ftype * register_reggroup_p
Definition i386-tdep.h:217
CORE_ADDR(* sigcontext_addr)(frame_info_ptr)
Definition i386-tdep.h:233
const char *const * pkeys_register_names
Definition i386-tdep.h:207
const char *const * ymmh_register_names
Definition i386-tdep.h:160
size_t sizeof_gregset
Definition i386-tdep.h:66
struct type * i386_zmm_type
Definition i386-tdep.h:247
const struct target_desc * tdesc
Definition i386-tdep.h:214
const int * record_regmap
Definition i386-tdep.h:254
int(* i386_sysenter_record)(struct regcache *regcache)
Definition i386-tdep.h:258
struct type * i386_ymm_type
Definition i386-tdep.h:246
const char *const * ymm16h_register_names
Definition i386-tdep.h:167
Definition value.h:130