LLDB mainline
lldb-x86-register-enums.h
Go to the documentation of this file.
1//===-- lldb-x86-register-enums.h -------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LLDB_X86_REGISTER_ENUMS_H
10#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LLDB_X86_REGISTER_ENUMS_H
11
12namespace lldb_private {
13// LLDB register codes (e.g. RegisterKind == eRegisterKindLLDB)
14
15// Internal codes for all i386 registers.
16enum {
34
53
55
92
103
110
115
126
137};
138
139// Internal codes for all x86_64 registers.
140enum {
166
176 lldb_r8d_x86_64, // Low 32 bits of r8
177 lldb_r9d_x86_64, // Low 32 bits of r9
178 lldb_r10d_x86_64, // Low 32 bits of r10
179 lldb_r11d_x86_64, // Low 32 bits of r11
180 lldb_r12d_x86_64, // Low 32 bits of r12
181 lldb_r13d_x86_64, // Low 32 bits of r13
182 lldb_r14d_x86_64, // Low 32 bits of r14
183 lldb_r15d_x86_64, // Low 32 bits of r15
192 lldb_r8w_x86_64, // Low 16 bits of r8
193 lldb_r9w_x86_64, // Low 16 bits of r9
194 lldb_r10w_x86_64, // Low 16 bits of r10
195 lldb_r11w_x86_64, // Low 16 bits of r11
196 lldb_r12w_x86_64, // Low 16 bits of r12
197 lldb_r13w_x86_64, // Low 16 bits of r13
198 lldb_r14w_x86_64, // Low 16 bits of r14
199 lldb_r15w_x86_64, // Low 16 bits of r15
212 lldb_r8l_x86_64, // Low 8 bits of r8
213 lldb_r9l_x86_64, // Low 8 bits of r9
214 lldb_r10l_x86_64, // Low 8 bits of r10
215 lldb_r11l_x86_64, // Low 8 bits of r11
216 lldb_r12l_x86_64, // Low 8 bits of r12
217 lldb_r13l_x86_64, // Low 8 bits of r13
218 lldb_r14l_x86_64, // Low 8 bits of r14
219 lldb_r15l_x86_64, // Low 8 bits of r15
221
223
270
289
296
301
312
323};
324
325// For platform that supports fs_base/gs_base registers.
326namespace x86_64_with_base {
327enum {
355
365 lldb_r8d, // Low 32 bits of r8
366 lldb_r9d, // Low 32 bits of r9
367 lldb_r10d, // Low 32 bits of r10
368 lldb_r11d, // Low 32 bits of r11
369 lldb_r12d, // Low 32 bits of r12
370 lldb_r13d, // Low 32 bits of r13
371 lldb_r14d, // Low 32 bits of r14
372 lldb_r15d, // Low 32 bits of r15
381 lldb_r8w, // Low 16 bits of r8
382 lldb_r9w, // Low 16 bits of r9
383 lldb_r10w, // Low 16 bits of r10
384 lldb_r11w, // Low 16 bits of r11
385 lldb_r12w, // Low 16 bits of r12
386 lldb_r13w, // Low 16 bits of r13
387 lldb_r14w, // Low 16 bits of r14
388 lldb_r15w, // Low 16 bits of r15
401 lldb_r8l, // Low 8 bits of r8
402 lldb_r9l, // Low 8 bits of r9
403 lldb_r10l, // Low 8 bits of r10
404 lldb_r11l, // Low 8 bits of r11
405 lldb_r12l, // Low 8 bits of r12
406 lldb_r13l, // Low 8 bits of r13
407 lldb_r14l, // Low 8 bits of r14
408 lldb_r15l, // Low 8 bits of r15
410
412
459
478
485
490
501
512};
513} // namespace x86_64_with_base
514
515}
516
517#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LLDB_X86_REGISTER_ENUMS_H
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14