LLDB  mainline
Enumerations | Variables
RegisterContextPOSIX_x86.cpp File Reference
#include <cerrno>
#include <cstdint>
#include <cstring>
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/RegisterValue.h"
#include "lldb/Utility/Scalar.h"
#include "llvm/Support/Compiler.h"
#include "RegisterContextPOSIX_x86.h"
#include "RegisterContext_x86.h"
Include dependency graph for RegisterContextPOSIX_x86.cpp:

Go to the source code of this file.

Enumerations

enum  { k_num_extended_register_sets = 1, k_num_register_sets = 3 }
 

Variables

const uint32_t g_gpr_regnums_i386 []
 
const uint32_t g_lldb_regnums_i386 []
 
const uint32_t g_avx_regnums_i386 []
 
static const uint32_t g_gpr_regnums_x86_64 []
 
static const uint32_t g_lldb_regnums_x86_64 []
 
static const uint32_t g_avx_regnums_x86_64 []
 
static const RegisterSet g_reg_sets_i386 [k_num_register_sets]
 
static const RegisterSet g_reg_sets_x86_64 [k_num_register_sets]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_num_extended_register_sets 
k_num_register_sets 

Definition at line 358 of file RegisterContextPOSIX_x86.cpp.

Variable Documentation

◆ g_avx_regnums_i386

const uint32_t g_avx_regnums_i386[]

◆ g_avx_regnums_x86_64

const uint32_t g_avx_regnums_x86_64[]
static

◆ g_gpr_regnums_i386

const uint32_t g_gpr_regnums_i386[]

◆ g_gpr_regnums_x86_64

const uint32_t g_gpr_regnums_x86_64[]
static

Definition at line 75 of file RegisterContextPOSIX_x86.cpp.

◆ g_lldb_regnums_i386

const uint32_t g_lldb_regnums_i386[]

◆ g_lldb_regnums_x86_64

const uint32_t g_lldb_regnums_x86_64[]
static

◆ g_reg_sets_i386

const RegisterSet g_reg_sets_i386[k_num_register_sets]
static
Initial value:
= {
{"General Purpose Registers", "gpr", k_num_gpr_registers_i386,
{"Floating Point Registers", "fpu", k_num_fpr_registers_i386,
{"Advanced Vector Extensions", "avx", k_num_avx_registers_i386,

Definition at line 360 of file RegisterContextPOSIX_x86.cpp.

Referenced by RegisterContextPOSIX_x86::GetRegisterSet().

◆ g_reg_sets_x86_64

const RegisterSet g_reg_sets_x86_64[k_num_register_sets]
static
Initial value:
= {
{"General Purpose Registers", "gpr", k_num_gpr_registers_x86_64,
{"Floating Point Registers", "fpu", k_num_fpr_registers_x86_64,
{"Advanced Vector Extensions", "avx", k_num_avx_registers_x86_64,

Definition at line 368 of file RegisterContextPOSIX_x86.cpp.

Referenced by RegisterContextPOSIX_x86::GetRegisterSet().

lldb_private::lldb_st1_i386
@ lldb_st1_i386
Definition: lldb-x86-register-enums.h:68
lldb_private::lldb_xmm13_x86_64
@ lldb_xmm13_x86_64
Definition: lldb-x86-register-enums.h:266
lldb_private::lldb_ymm15_x86_64
@ lldb_ymm15_x86_64
Definition: lldb-x86-register-enums.h:287
lldb_private::lldb_mxcsr_x86_64
@ lldb_mxcsr_x86_64
Definition: lldb-x86-register-enums.h:235
lldb_private::lldb_xmm6_i386
@ lldb_xmm6_i386
Definition: lldb-x86-register-enums.h:89
lldb_private::lldb_ymm12_x86_64
@ lldb_ymm12_x86_64
Definition: lldb-x86-register-enums.h:284
lldb_private::lldb_mm6_x86_64
@ lldb_mm6_x86_64
Definition: lldb-x86-register-enums.h:251
lldb_private::k_num_fpr_registers_x86_64
@ k_num_fpr_registers_x86_64
Definition: lldb-x86-register-enums.h:315
lldb_private::lldb_cl_i386
@ lldb_cl_i386
Definition: lldb-x86-register-enums.h:50
lldb_private::lldb_ah_i386
@ lldb_ah_i386
Definition: lldb-x86-register-enums.h:44
lldb_private::lldb_foseg_i386
@ lldb_foseg_i386
Definition: lldb-x86-register-enums.h:63
lldb_private::lldb_mxcsrmask_x86_64
@ lldb_mxcsrmask_x86_64
Definition: lldb-x86-register-enums.h:236
lldb_private::lldb_ymm3_x86_64
@ lldb_ymm3_x86_64
Definition: lldb-x86-register-enums.h:275
lldb_private::lldb_xmm14_x86_64
@ lldb_xmm14_x86_64
Definition: lldb-x86-register-enums.h:267
lldb_private::lldb_ymm4_x86_64
@ lldb_ymm4_x86_64
Definition: lldb-x86-register-enums.h:276
lldb_private::lldb_esp_i386
@ lldb_esp_i386
Definition: lldb-x86-register-enums.h:25
LLDB_INVALID_REGNUM
#define LLDB_INVALID_REGNUM
Definition: lldb-defines.h:91
lldb_private::lldb_xmm3_i386
@ lldb_xmm3_i386
Definition: lldb-x86-register-enums.h:86
lldb_private::lldb_di_i386
@ lldb_di_i386
Definition: lldb-x86-register-enums.h:40
lldb_private::lldb_mm3_x86_64
@ lldb_mm3_x86_64
Definition: lldb-x86-register-enums.h:248
g_lldb_regnums_i386
const uint32_t g_lldb_regnums_i386[]
Definition: RegisterContextPOSIX_x86.cpp:46
lldb_private::lldb_st3_i386
@ lldb_st3_i386
Definition: lldb-x86-register-enums.h:70
lldb_private::lldb_mxcsrmask_i386
@ lldb_mxcsrmask_i386
Definition: lldb-x86-register-enums.h:66
lldb_private::lldb_dh_i386
@ lldb_dh_i386
Definition: lldb-x86-register-enums.h:47
lldb_private::lldb_ymm2_x86_64
@ lldb_ymm2_x86_64
Definition: lldb-x86-register-enums.h:274
lldb_private::lldb_fiseg_i386
@ lldb_fiseg_i386
Definition: lldb-x86-register-enums.h:61
lldb_private::k_num_gpr_registers_i386
@ k_num_gpr_registers_i386
Definition: lldb-x86-register-enums.h:128
lldb_private::lldb_ymm4_i386
@ lldb_ymm4_i386
Definition: lldb-x86-register-enums.h:98
lldb_private::lldb_fop_x86_64
@ lldb_fop_x86_64
Definition: lldb-x86-register-enums.h:228
lldb_private::lldb_st0_i386
@ lldb_st0_i386
Definition: lldb-x86-register-enums.h:67
lldb_private::lldb_xmm1_i386
@ lldb_xmm1_i386
Definition: lldb-x86-register-enums.h:84
lldb_private::lldb_ymm9_x86_64
@ lldb_ymm9_x86_64
Definition: lldb-x86-register-enums.h:281
g_lldb_regnums_x86_64
static const uint32_t g_lldb_regnums_x86_64[]
Definition: RegisterContextPOSIX_x86.cpp:121
lldb_private::lldb_eax_i386
@ lldb_eax_i386
Definition: lldb-x86-register-enums.h:18
lldb_private::lldb_ymm3_i386
@ lldb_ymm3_i386
Definition: lldb-x86-register-enums.h:97
lldb_private::lldb_st1_x86_64
@ lldb_st1_x86_64
Definition: lldb-x86-register-enums.h:238
lldb_private::lldb_mm0_i386
@ lldb_mm0_i386
Definition: lldb-x86-register-enums.h:75
lldb_private::lldb_ymm7_i386
@ lldb_ymm7_i386
Definition: lldb-x86-register-enums.h:101
lldb_private::lldb_foseg_x86_64
@ lldb_foseg_x86_64
Definition: lldb-x86-register-enums.h:232
lldb_private::lldb_ymm1_i386
@ lldb_ymm1_i386
Definition: lldb-x86-register-enums.h:95
lldb_private::lldb_xmm7_x86_64
@ lldb_xmm7_x86_64
Definition: lldb-x86-register-enums.h:260
lldb_private::lldb_fooff_x86_64
@ lldb_fooff_x86_64
Definition: lldb-x86-register-enums.h:233
lldb_private::lldb_mm7_x86_64
@ lldb_mm7_x86_64
Definition: lldb-x86-register-enums.h:252
lldb_private::lldb_xmm7_i386
@ lldb_xmm7_i386
Definition: lldb-x86-register-enums.h:90
lldb_private::lldb_mm2_i386
@ lldb_mm2_i386
Definition: lldb-x86-register-enums.h:77
lldb_private::lldb_st5_i386
@ lldb_st5_i386
Definition: lldb-x86-register-enums.h:72
lldb_private::lldb_st6_x86_64
@ lldb_st6_x86_64
Definition: lldb-x86-register-enums.h:243
lldb_private::lldb_mm5_x86_64
@ lldb_mm5_x86_64
Definition: lldb-x86-register-enums.h:250
lldb_private::lldb_ymm5_i386
@ lldb_ymm5_i386
Definition: lldb-x86-register-enums.h:99
lldb_private::lldb_st3_x86_64
@ lldb_st3_x86_64
Definition: lldb-x86-register-enums.h:240
lldb_private::lldb_ymm0_i386
@ lldb_ymm0_i386
Definition: lldb-x86-register-enums.h:94
lldb_private::lldb_fiseg_x86_64
@ lldb_fiseg_x86_64
Definition: lldb-x86-register-enums.h:229
lldb_private::lldb_xmm2_x86_64
@ lldb_xmm2_x86_64
Definition: lldb-x86-register-enums.h:255
g_avx_regnums_x86_64
static const uint32_t g_avx_regnums_x86_64[]
Definition: RegisterContextPOSIX_x86.cpp:146
lldb_private::lldb_ymm7_x86_64
@ lldb_ymm7_x86_64
Definition: lldb-x86-register-enums.h:279
lldb_private::lldb_mm4_i386
@ lldb_mm4_i386
Definition: lldb-x86-register-enums.h:79
lldb_private::lldb_mm4_x86_64
@ lldb_mm4_x86_64
Definition: lldb-x86-register-enums.h:249
lldb_private::lldb_ymm5_x86_64
@ lldb_ymm5_x86_64
Definition: lldb-x86-register-enums.h:277
lldb_private::lldb_ax_i386
@ lldb_ax_i386
Definition: lldb-x86-register-enums.h:36
lldb_private::lldb_ch_i386
@ lldb_ch_i386
Definition: lldb-x86-register-enums.h:46
lldb_private::lldb_ymm6_i386
@ lldb_ymm6_i386
Definition: lldb-x86-register-enums.h:100
lldb_private::lldb_xmm4_x86_64
@ lldb_xmm4_x86_64
Definition: lldb-x86-register-enums.h:257
lldb_private::lldb_es_i386
@ lldb_es_i386
Definition: lldb-x86-register-enums.h:33
lldb_private::lldb_xmm0_i386
@ lldb_xmm0_i386
Definition: lldb-x86-register-enums.h:83
lldb_private::lldb_st7_x86_64
@ lldb_st7_x86_64
Definition: lldb-x86-register-enums.h:244
lldb_private::lldb_edi_i386
@ lldb_edi_i386
Definition: lldb-x86-register-enums.h:22
lldb_private::lldb_dx_i386
@ lldb_dx_i386
Definition: lldb-x86-register-enums.h:39
lldb_private::lldb_al_i386
@ lldb_al_i386
Definition: lldb-x86-register-enums.h:48
lldb_private::lldb_fioff_x86_64
@ lldb_fioff_x86_64
Definition: lldb-x86-register-enums.h:230
lldb_private::lldb_dl_i386
@ lldb_dl_i386
Definition: lldb-x86-register-enums.h:51
lldb_private::lldb_ymm14_x86_64
@ lldb_ymm14_x86_64
Definition: lldb-x86-register-enums.h:286
lldb_private::lldb_xmm1_x86_64
@ lldb_xmm1_x86_64
Definition: lldb-x86-register-enums.h:254
lldb_private::lldb_cx_i386
@ lldb_cx_i386
Definition: lldb-x86-register-enums.h:38
lldb_private::lldb_xmm8_x86_64
@ lldb_xmm8_x86_64
Definition: lldb-x86-register-enums.h:261
lldb_private::lldb_xmm12_x86_64
@ lldb_xmm12_x86_64
Definition: lldb-x86-register-enums.h:265
lldb_private::lldb_xmm5_x86_64
@ lldb_xmm5_x86_64
Definition: lldb-x86-register-enums.h:258
lldb_private::lldb_xmm0_x86_64
@ lldb_xmm0_x86_64
Definition: lldb-x86-register-enums.h:253
lldb_private::lldb_st4_x86_64
@ lldb_st4_x86_64
Definition: lldb-x86-register-enums.h:241
lldb_private::lldb_fdp_x86_64
@ lldb_fdp_x86_64
Definition: lldb-x86-register-enums.h:234
lldb_private::lldb_ftag_i386
@ lldb_ftag_i386
Definition: lldb-x86-register-enums.h:59
lldb_private::lldb_ecx_i386
@ lldb_ecx_i386
Definition: lldb-x86-register-enums.h:20
lldb_private::lldb_ymm2_i386
@ lldb_ymm2_i386
Definition: lldb-x86-register-enums.h:96
lldb_private::lldb_bp_i386
@ lldb_bp_i386
Definition: lldb-x86-register-enums.h:42
lldb_private::lldb_ebx_i386
@ lldb_ebx_i386
Definition: lldb-x86-register-enums.h:19
lldb_private::k_num_avx_registers_i386
@ k_num_avx_registers_i386
Definition: lldb-x86-register-enums.h:130
lldb_private::lldb_ymm0_x86_64
@ lldb_ymm0_x86_64
Definition: lldb-x86-register-enums.h:272
lldb_private::lldb_ymm10_x86_64
@ lldb_ymm10_x86_64
Definition: lldb-x86-register-enums.h:282
lldb_private::lldb_fip_x86_64
@ lldb_fip_x86_64
Definition: lldb-x86-register-enums.h:231
lldb_private::lldb_xmm2_i386
@ lldb_xmm2_i386
Definition: lldb-x86-register-enums.h:85
lldb_private::lldb_mm0_x86_64
@ lldb_mm0_x86_64
Definition: lldb-x86-register-enums.h:245
lldb_private::lldb_mm5_i386
@ lldb_mm5_i386
Definition: lldb-x86-register-enums.h:80
g_gpr_regnums_x86_64
static const uint32_t g_gpr_regnums_x86_64[]
Definition: RegisterContextPOSIX_x86.cpp:75
lldb_private::lldb_xmm11_x86_64
@ lldb_xmm11_x86_64
Definition: lldb-x86-register-enums.h:264
lldb_private::lldb_xmm4_i386
@ lldb_xmm4_i386
Definition: lldb-x86-register-enums.h:87
g_avx_regnums_i386
const uint32_t g_avx_regnums_i386[]
Definition: RegisterContextPOSIX_x86.cpp:64
lldb_private::k_num_avx_registers_x86_64
@ k_num_avx_registers_x86_64
Definition: lldb-x86-register-enums.h:316
lldb_private::lldb_fs_i386
@ lldb_fs_i386
Definition: lldb-x86-register-enums.h:29
lldb_private::lldb_cs_i386
@ lldb_cs_i386
Definition: lldb-x86-register-enums.h:28
lldb_private::lldb_fstat_i386
@ lldb_fstat_i386
Definition: lldb-x86-register-enums.h:58
lldb_private::lldb_ds_i386
@ lldb_ds_i386
Definition: lldb-x86-register-enums.h:32
lldb_private::lldb_ymm1_x86_64
@ lldb_ymm1_x86_64
Definition: lldb-x86-register-enums.h:273
lldb_private::k_num_gpr_registers_x86_64
@ k_num_gpr_registers_x86_64
Definition: lldb-x86-register-enums.h:314
lldb_private::lldb_bh_i386
@ lldb_bh_i386
Definition: lldb-x86-register-enums.h:45
lldb_private::lldb_sp_i386
@ lldb_sp_i386
Definition: lldb-x86-register-enums.h:43
lldb_private::lldb_mm7_i386
@ lldb_mm7_i386
Definition: lldb-x86-register-enums.h:82
lldb_private::lldb_edx_i386
@ lldb_edx_i386
Definition: lldb-x86-register-enums.h:21
lldb_private::lldb_ebp_i386
@ lldb_ebp_i386
Definition: lldb-x86-register-enums.h:24
lldb_private::lldb_st0_x86_64
@ lldb_st0_x86_64
Definition: lldb-x86-register-enums.h:237
lldb_private::lldb_fioff_i386
@ lldb_fioff_i386
Definition: lldb-x86-register-enums.h:62
lldb_private::lldb_bl_i386
@ lldb_bl_i386
Definition: lldb-x86-register-enums.h:49
lldb_private::lldb_ss_i386
@ lldb_ss_i386
Definition: lldb-x86-register-enums.h:31
lldb_private::lldb_esi_i386
@ lldb_esi_i386
Definition: lldb-x86-register-enums.h:23
lldb_private::lldb_ftag_x86_64
@ lldb_ftag_x86_64
Definition: lldb-x86-register-enums.h:227
lldb_private::lldb_mm2_x86_64
@ lldb_mm2_x86_64
Definition: lldb-x86-register-enums.h:247
lldb_private::lldb_eflags_i386
@ lldb_eflags_i386
Definition: lldb-x86-register-enums.h:27
lldb_private::lldb_mm1_i386
@ lldb_mm1_i386
Definition: lldb-x86-register-enums.h:76
lldb_private::lldb_mm1_x86_64
@ lldb_mm1_x86_64
Definition: lldb-x86-register-enums.h:246
g_gpr_regnums_i386
const uint32_t g_gpr_regnums_i386[]
Definition: RegisterContextPOSIX_x86.cpp:29
lldb_private::lldb_mxcsr_i386
@ lldb_mxcsr_i386
Definition: lldb-x86-register-enums.h:65
lldb_private::lldb_xmm15_x86_64
@ lldb_xmm15_x86_64
Definition: lldb-x86-register-enums.h:268
lldb_private::k_num_fpr_registers_i386
@ k_num_fpr_registers_i386
Definition: lldb-x86-register-enums.h:129
lldb_private::lldb_st6_i386
@ lldb_st6_i386
Definition: lldb-x86-register-enums.h:73
lldb_private::lldb_xmm9_x86_64
@ lldb_xmm9_x86_64
Definition: lldb-x86-register-enums.h:262
lldb_private::lldb_xmm3_x86_64
@ lldb_xmm3_x86_64
Definition: lldb-x86-register-enums.h:256
lldb_private::lldb_st4_i386
@ lldb_st4_i386
Definition: lldb-x86-register-enums.h:71
lldb_private::lldb_xmm6_x86_64
@ lldb_xmm6_x86_64
Definition: lldb-x86-register-enums.h:259
lldb_private::lldb_bx_i386
@ lldb_bx_i386
Definition: lldb-x86-register-enums.h:37
lldb_private::lldb_xmm10_x86_64
@ lldb_xmm10_x86_64
Definition: lldb-x86-register-enums.h:263
lldb_private::lldb_ymm8_x86_64
@ lldb_ymm8_x86_64
Definition: lldb-x86-register-enums.h:280
lldb_private::lldb_st7_i386
@ lldb_st7_i386
Definition: lldb-x86-register-enums.h:74
lldb_private::lldb_st2_i386
@ lldb_st2_i386
Definition: lldb-x86-register-enums.h:69
lldb_private::lldb_fstat_x86_64
@ lldb_fstat_x86_64
Definition: lldb-x86-register-enums.h:226
lldb_private::lldb_xmm5_i386
@ lldb_xmm5_i386
Definition: lldb-x86-register-enums.h:88
lldb_private::lldb_fooff_i386
@ lldb_fooff_i386
Definition: lldb-x86-register-enums.h:64
lldb_private::lldb_ymm6_x86_64
@ lldb_ymm6_x86_64
Definition: lldb-x86-register-enums.h:278
lldb_private::lldb_mm6_i386
@ lldb_mm6_i386
Definition: lldb-x86-register-enums.h:81
lldb_private::lldb_mm3_i386
@ lldb_mm3_i386
Definition: lldb-x86-register-enums.h:78
lldb_private::lldb_st5_x86_64
@ lldb_st5_x86_64
Definition: lldb-x86-register-enums.h:242
lldb_private::lldb_fctrl_x86_64
@ lldb_fctrl_x86_64
Definition: lldb-x86-register-enums.h:225
lldb_private::lldb_fctrl_i386
@ lldb_fctrl_i386
Definition: lldb-x86-register-enums.h:57
lldb_private::lldb_st2_x86_64
@ lldb_st2_x86_64
Definition: lldb-x86-register-enums.h:239
lldb_private::lldb_ymm13_x86_64
@ lldb_ymm13_x86_64
Definition: lldb-x86-register-enums.h:285
lldb_private::lldb_ymm11_x86_64
@ lldb_ymm11_x86_64
Definition: lldb-x86-register-enums.h:283
lldb_private::lldb_si_i386
@ lldb_si_i386
Definition: lldb-x86-register-enums.h:41
lldb_private::lldb_eip_i386
@ lldb_eip_i386
Definition: lldb-x86-register-enums.h:26
lldb_private::lldb_gs_i386
@ lldb_gs_i386
Definition: lldb-x86-register-enums.h:30
lldb_private::lldb_fop_i386
@ lldb_fop_i386
Definition: lldb-x86-register-enums.h:60