VirtualBox

source: vbox/trunk/include/iprt/formats/dwarf.h@ 101246

Last change on this file since 101246 was 101246, checked in by vboxsync, 15 months ago

iprt/armv8.h,iprt/formats/dwarf.h: Arm register names. bugref:10370

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 31.9 KB
Line 
1/** @file
2 * IPRT - DWARF constants.
3 *
4 * @note dwarf.mac is generated from this file by running 'kmk incs' in the root.
5 */
6
7/*
8 * Copyright (C) 2006-2023 Oracle and/or its affiliates.
9 *
10 * This file is part of VirtualBox base platform packages, as
11 * available from https://www.virtualbox.org.
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation, in version 3 of the
16 * License.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, see <https://www.gnu.org/licenses>.
25 *
26 * The contents of this file may alternatively be used under the terms
27 * of the Common Development and Distribution License Version 1.0
28 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
29 * in the VirtualBox distribution, in which case the provisions of the
30 * CDDL are applicable instead of those of the GPL.
31 *
32 * You may elect to license modified versions of this file under the
33 * terms and conditions of either the GPL or the CDDL or both.
34 *
35 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
36 */
37
38#ifndef IPRT_INCLUDED_formats_dwarf_h
39#define IPRT_INCLUDED_formats_dwarf_h
40#ifndef RT_WITHOUT_PRAGMA_ONCE
41# pragma once
42#endif
43
44
45/** @name Standard DWARF Line Number Opcodes
46 * @{ */
47#define DW_LNS_extended UINT8_C(0x00)
48#define DW_LNS_copy UINT8_C(0x01)
49#define DW_LNS_advance_pc UINT8_C(0x02)
50#define DW_LNS_advance_line UINT8_C(0x03)
51#define DW_LNS_set_file UINT8_C(0x04)
52#define DW_LNS_set_column UINT8_C(0x05)
53#define DW_LNS_negate_stmt UINT8_C(0x06)
54#define DW_LNS_set_basic_block UINT8_C(0x07)
55#define DW_LNS_const_add_pc UINT8_C(0x08)
56#define DW_LNS_fixed_advance_pc UINT8_C(0x09)
57#define DW_LNS_set_prologue_end UINT8_C(0x0a)
58#define DW_LNS_set_epilogue_begin UINT8_C(0x0b)
59#define DW_LNS_set_isa UINT8_C(0x0c)
60#define DW_LNS_what_question_mark UINT8_C(0x0d)
61/** @} */
62
63
64/** @name Extended DWARF Line Number Opcodes
65 * @{ */
66#define DW_LNE_end_sequence UINT8_C(1)
67#define DW_LNE_set_address UINT8_C(2)
68#define DW_LNE_define_file UINT8_C(3)
69#define DW_LNE_set_descriminator UINT8_C(4)
70/** @} */
71
72
73/** @name DIE Tags.
74 * @{ */
75#define DW_TAG_array_type UINT16_C(0x0001)
76#define DW_TAG_class_type UINT16_C(0x0002)
77#define DW_TAG_entry_point UINT16_C(0x0003)
78#define DW_TAG_enumeration_type UINT16_C(0x0004)
79#define DW_TAG_formal_parameter UINT16_C(0x0005)
80#define DW_TAG_imported_declaration UINT16_C(0x0008)
81#define DW_TAG_label UINT16_C(0x000a)
82#define DW_TAG_lexical_block UINT16_C(0x000b)
83#define DW_TAG_member UINT16_C(0x000d)
84#define DW_TAG_pointer_type UINT16_C(0x000f)
85#define DW_TAG_reference_type UINT16_C(0x0010)
86#define DW_TAG_compile_unit UINT16_C(0x0011)
87#define DW_TAG_string_type UINT16_C(0x0012)
88#define DW_TAG_structure_type UINT16_C(0x0013)
89#define DW_TAG_subroutine_type UINT16_C(0x0015)
90#define DW_TAG_typedef UINT16_C(0x0016)
91#define DW_TAG_union_type UINT16_C(0x0017)
92#define DW_TAG_unspecified_parameters UINT16_C(0x0018)
93#define DW_TAG_variant UINT16_C(0x0019)
94#define DW_TAG_common_block UINT16_C(0x001a)
95#define DW_TAG_common_inclusion UINT16_C(0x001b)
96#define DW_TAG_inheritance UINT16_C(0x001c)
97#define DW_TAG_inlined_subroutine UINT16_C(0x001d)
98#define DW_TAG_module UINT16_C(0x001e)
99#define DW_TAG_ptr_to_member_type UINT16_C(0x001f)
100#define DW_TAG_set_type UINT16_C(0x0020)
101#define DW_TAG_subrange_type UINT16_C(0x0021)
102#define DW_TAG_with_stmt UINT16_C(0x0022)
103#define DW_TAG_access_declaration UINT16_C(0x0023)
104#define DW_TAG_base_type UINT16_C(0x0024)
105#define DW_TAG_catch_block UINT16_C(0x0025)
106#define DW_TAG_const_type UINT16_C(0x0026)
107#define DW_TAG_constant UINT16_C(0x0027)
108#define DW_TAG_enumerator UINT16_C(0x0028)
109#define DW_TAG_file_type UINT16_C(0x0029)
110#define DW_TAG_friend UINT16_C(0x002a)
111#define DW_TAG_namelist UINT16_C(0x002b)
112#define DW_TAG_namelist_item UINT16_C(0x002c)
113#define DW_TAG_packed_type UINT16_C(0x002d)
114#define DW_TAG_subprogram UINT16_C(0x002e)
115#define DW_TAG_template_type_parameter UINT16_C(0x002f)
116#define DW_TAG_template_value_parameter UINT16_C(0x0030)
117#define DW_TAG_thrown_type UINT16_C(0x0031)
118#define DW_TAG_try_block UINT16_C(0x0032)
119#define DW_TAG_variant_part UINT16_C(0x0033)
120#define DW_TAG_variable UINT16_C(0x0034)
121#define DW_TAG_volatile_type UINT16_C(0x0035)
122#define DW_TAG_dwarf_procedure UINT16_C(0x0036)
123#define DW_TAG_restrict_type UINT16_C(0x0037)
124#define DW_TAG_interface_type UINT16_C(0x0038)
125#define DW_TAG_namespace UINT16_C(0x0039)
126#define DW_TAG_imported_module UINT16_C(0x003a)
127#define DW_TAG_unspecified_type UINT16_C(0x003b)
128#define DW_TAG_partial_unit UINT16_C(0x003c)
129#define DW_TAG_imported_unit UINT16_C(0x003d)
130#define DW_TAG_condition UINT16_C(0x003f)
131#define DW_TAG_shared_type UINT16_C(0x0040)
132#define DW_TAG_type_unit UINT16_C(0x0041)
133#define DW_TAG_rvalue_reference_type UINT16_C(0x0042)
134#define DW_TAG_template_alias UINT16_C(0x0043)
135#define DW_TAG_lo_user UINT16_C(0x4080)
136#define DW_TAG_GNU_call_site UINT16_C(0x4109)
137#define DW_TAG_GNU_call_site_parameter UINT16_C(0x410a)
138#define DW_TAG_WATCOM_address_class_type UINT16_C(0x4100) /**< Watcom extension. */
139#define DW_TAG_WATCOM_namespace UINT16_C(0x4101) /**< Watcom extension. */
140#define DW_TAG_hi_user UINT16_C(0xffff)
141/** @} */
142
143
144/** @name Has children or not (follows DW_TAG_xxx in .debug_abbrev).
145 * @{ */
146#define DW_CHILDREN_yes 1
147#define DW_CHILDREN_no 0
148/** @} */
149
150
151/** @name DIE Attributes.
152 * @{ */
153#define DW_AT_sibling UINT16_C(0x0001)
154#define DW_AT_location UINT16_C(0x0002)
155#define DW_AT_name UINT16_C(0x0003)
156#define DW_AT_ordering UINT16_C(0x0009)
157#define DW_AT_byte_size UINT16_C(0x000b)
158#define DW_AT_bit_offset UINT16_C(0x000c)
159#define DW_AT_bit_size UINT16_C(0x000d)
160#define DW_AT_stmt_list UINT16_C(0x0010)
161#define DW_AT_low_pc UINT16_C(0x0011)
162#define DW_AT_high_pc UINT16_C(0x0012)
163#define DW_AT_language UINT16_C(0x0013)
164#define DW_AT_discr UINT16_C(0x0015)
165#define DW_AT_discr_value UINT16_C(0x0016)
166#define DW_AT_visibility UINT16_C(0x0017)
167#define DW_AT_import UINT16_C(0x0018)
168#define DW_AT_string_length UINT16_C(0x0019)
169#define DW_AT_common_reference UINT16_C(0x001a)
170#define DW_AT_comp_dir UINT16_C(0x001b)
171#define DW_AT_const_value UINT16_C(0x001c)
172#define DW_AT_containing_type UINT16_C(0x001d)
173#define DW_AT_default_value UINT16_C(0x001e)
174#define DW_AT_inline UINT16_C(0x0020)
175#define DW_AT_is_optional UINT16_C(0x0021)
176#define DW_AT_lower_bound UINT16_C(0x0022)
177#define DW_AT_producer UINT16_C(0x0025)
178#define DW_AT_prototyped UINT16_C(0x0027)
179#define DW_AT_return_addr UINT16_C(0x002a)
180#define DW_AT_start_scope UINT16_C(0x002c)
181#define DW_AT_bit_stride UINT16_C(0x002e)
182#define DW_AT_upper_bound UINT16_C(0x002f)
183#define DW_AT_abstract_origin UINT16_C(0x0031)
184#define DW_AT_accessibility UINT16_C(0x0032)
185#define DW_AT_address_class UINT16_C(0x0033)
186#define DW_AT_artificial UINT16_C(0x0034)
187#define DW_AT_base_types UINT16_C(0x0035)
188#define DW_AT_calling_convention UINT16_C(0x0036)
189#define DW_AT_count UINT16_C(0x0037)
190#define DW_AT_data_member_location UINT16_C(0x0038)
191#define DW_AT_decl_column UINT16_C(0x0039)
192#define DW_AT_decl_file UINT16_C(0x003a)
193#define DW_AT_decl_line UINT16_C(0x003b)
194#define DW_AT_declaration UINT16_C(0x003c)
195#define DW_AT_discr_list UINT16_C(0x003d)
196#define DW_AT_encoding UINT16_C(0x003e)
197#define DW_AT_external UINT16_C(0x003f)
198#define DW_AT_frame_base UINT16_C(0x0040)
199#define DW_AT_friend UINT16_C(0x0041)
200#define DW_AT_identifier_case UINT16_C(0x0042)
201#define DW_AT_macro_info UINT16_C(0x0043)
202#define DW_AT_namelist_item UINT16_C(0x0044)
203#define DW_AT_priority UINT16_C(0x0045)
204#define DW_AT_segment UINT16_C(0x0046)
205#define DW_AT_specification UINT16_C(0x0047)
206#define DW_AT_static_link UINT16_C(0x0048)
207#define DW_AT_type UINT16_C(0x0049)
208#define DW_AT_use_location UINT16_C(0x004a)
209#define DW_AT_variable_parameter UINT16_C(0x004b)
210#define DW_AT_virtuality UINT16_C(0x004c)
211#define DW_AT_vtable_elem_location UINT16_C(0x004d)
212#define DW_AT_allocated UINT16_C(0x004e)
213#define DW_AT_associated UINT16_C(0x004f)
214#define DW_AT_data_location UINT16_C(0x0050)
215#define DW_AT_byte_stride UINT16_C(0x0051)
216#define DW_AT_entry_pc UINT16_C(0x0052)
217#define DW_AT_use_UTF8 UINT16_C(0x0053)
218#define DW_AT_extension UINT16_C(0x0054)
219#define DW_AT_ranges UINT16_C(0x0055)
220#define DW_AT_trampoline UINT16_C(0x0056)
221#define DW_AT_call_column UINT16_C(0x0057)
222#define DW_AT_call_file UINT16_C(0x0058)
223#define DW_AT_call_line UINT16_C(0x0059)
224#define DW_AT_description UINT16_C(0x005a)
225#define DW_AT_binary_scale UINT16_C(0x005b)
226#define DW_AT_decimal_scale UINT16_C(0x005c)
227#define DW_AT_small UINT16_C(0x005d)
228#define DW_AT_decimal_sign UINT16_C(0x005e)
229#define DW_AT_digit_count UINT16_C(0x005f)
230#define DW_AT_picture_string UINT16_C(0x0060)
231#define DW_AT_mutable UINT16_C(0x0061)
232#define DW_AT_threads_scaled UINT16_C(0x0062)
233#define DW_AT_explicit UINT16_C(0x0063)
234#define DW_AT_object_pointer UINT16_C(0x0064)
235#define DW_AT_endianity UINT16_C(0x0065)
236#define DW_AT_elemental UINT16_C(0x0066)
237#define DW_AT_pure UINT16_C(0x0067)
238#define DW_AT_recursive UINT16_C(0x0068)
239#define DW_AT_signature UINT16_C(0x0069)
240#define DW_AT_main_subprogram UINT16_C(0x006a)
241#define DW_AT_data_bit_offset UINT16_C(0x006b)
242#define DW_AT_const_expr UINT16_C(0x006c)
243#define DW_AT_enum_class UINT16_C(0x006d)
244#define DW_AT_linkage_name UINT16_C(0x006e)
245#define DW_AT_lo_user UINT16_C(0x2000)
246/** Used by GCC and others, same as DW_AT_linkage_name. See http://wiki.dwarfstd.org/index.php?title=DW_AT_linkage_name*/
247#define DW_AT_MIPS_linkage_name UINT16_C(0x2007)
248#define DW_AT_WATCOM_memory_model UINT16_C(0x2082) /**< Watcom extension. */
249#define DW_AT_WATCOM_references_start UINT16_C(0x2083) /**< Watcom extension. */
250#define DW_AT_WATCOM_parm_entry UINT16_C(0x2084) /**< Watcom extension. */
251#define DW_AT_hi_user UINT16_C(0x3fff)
252/** @} */
253
254/** @name DIE Forms.
255 * @{ */
256#define DW_FORM_addr UINT16_C(0x01)
257/* 0x02 was FORM_REF in DWARF v1, obsolete now. */
258#define DW_FORM_block2 UINT16_C(0x03)
259#define DW_FORM_block4 UINT16_C(0x04)
260#define DW_FORM_data2 UINT16_C(0x05)
261#define DW_FORM_data4 UINT16_C(0x06)
262#define DW_FORM_data8 UINT16_C(0x07)
263#define DW_FORM_string UINT16_C(0x08)
264#define DW_FORM_block UINT16_C(0x09)
265#define DW_FORM_block1 UINT16_C(0x0a)
266#define DW_FORM_data1 UINT16_C(0x0b)
267#define DW_FORM_flag UINT16_C(0x0c)
268#define DW_FORM_sdata UINT16_C(0x0d)
269#define DW_FORM_strp UINT16_C(0x0e)
270#define DW_FORM_udata UINT16_C(0x0f)
271#define DW_FORM_ref_addr UINT16_C(0x10)
272#define DW_FORM_ref1 UINT16_C(0x11)
273#define DW_FORM_ref2 UINT16_C(0x12)
274#define DW_FORM_ref4 UINT16_C(0x13)
275#define DW_FORM_ref8 UINT16_C(0x14)
276#define DW_FORM_ref_udata UINT16_C(0x15)
277#define DW_FORM_indirect UINT16_C(0x16)
278#define DW_FORM_sec_offset UINT16_C(0x17)
279#define DW_FORM_exprloc UINT16_C(0x18)
280#define DW_FORM_flag_present UINT16_C(0x19)
281#define DW_FORM_ref_sig8 UINT16_C(0x20)
282/** @} */
283
284/** @name Address classes.
285 * @{ */
286#define DW_ADDR_none UINT8_C(0)
287#define DW_ADDR_i386_near16 UINT8_C(1)
288#define DW_ADDR_i386_far16 UINT8_C(2)
289#define DW_ADDR_i386_huge16 UINT8_C(3)
290#define DW_ADDR_i386_near32 UINT8_C(4)
291#define DW_ADDR_i386_far32 UINT8_C(5)
292/** @} */
293
294
295/** @name Location Expression Opcodes
296 * @{ */
297#define DW_OP_addr UINT8_C(0x03) /**< 1 operand, a constant address (size target specific). */
298#define DW_OP_deref UINT8_C(0x06) /**< 0 operands. */
299#define DW_OP_const1u UINT8_C(0x08) /**< 1 operand, a 1-byte constant. */
300#define DW_OP_const1s UINT8_C(0x09) /**< 1 operand, a 1-byte constant. */
301#define DW_OP_const2u UINT8_C(0x0a) /**< 1 operand, a 2-byte constant. */
302#define DW_OP_const2s UINT8_C(0x0b) /**< 1 operand, a 2-byte constant. */
303#define DW_OP_const4u UINT8_C(0x0c) /**< 1 operand, a 4-byte constant. */
304#define DW_OP_const4s UINT8_C(0x0d) /**< 1 operand, a 4-byte constant. */
305#define DW_OP_const8u UINT8_C(0x0e) /**< 1 operand, a 8-byte constant. */
306#define DW_OP_const8s UINT8_C(0x0f) /**< 1 operand, a 8-byte constant. */
307#define DW_OP_constu UINT8_C(0x10) /**< 1 operand, a ULEB128 constant. */
308#define DW_OP_consts UINT8_C(0x11) /**< 1 operand, a SLEB128 constant. */
309#define DW_OP_dup UINT8_C(0x12) /**< 0 operands. */
310#define DW_OP_drop UINT8_C(0x13) /**< 0 operands. */
311#define DW_OP_over UINT8_C(0x14) /**< 0 operands. */
312#define DW_OP_pick UINT8_C(0x15) /**< 1 operands, a 1-byte stack index. */
313#define DW_OP_swap UINT8_C(0x16) /**< 0 operands. */
314#define DW_OP_rot UINT8_C(0x17) /**< 0 operands. */
315#define DW_OP_xderef UINT8_C(0x18) /**< 0 operands. */
316#define DW_OP_abs UINT8_C(0x19) /**< 0 operands. */
317#define DW_OP_and UINT8_C(0x1a) /**< 0 operands. */
318#define DW_OP_div UINT8_C(0x1b) /**< 0 operands. */
319#define DW_OP_minus UINT8_C(0x1c) /**< 0 operands. */
320#define DW_OP_mod UINT8_C(0x1d) /**< 0 operands. */
321#define DW_OP_mul UINT8_C(0x1e) /**< 0 operands. */
322#define DW_OP_neg UINT8_C(0x1f) /**< 0 operands. */
323#define DW_OP_not UINT8_C(0x20) /**< 0 operands. */
324#define DW_OP_or UINT8_C(0x21) /**< 0 operands. */
325#define DW_OP_plus UINT8_C(0x22) /**< 0 operands. */
326#define DW_OP_plus_uconst UINT8_C(0x23) /**< 1 operands, a ULEB128 addend. */
327#define DW_OP_shl UINT8_C(0x24) /**< 0 operands. */
328#define DW_OP_shr UINT8_C(0x25) /**< 0 operands. */
329#define DW_OP_shra UINT8_C(0x26) /**< 0 operands. */
330#define DW_OP_xor UINT8_C(0x27) /**< 0 operands. */
331#define DW_OP_skip UINT8_C(0x2f) /**< 1 signed 2-byte constant. */
332#define DW_OP_bra UINT8_C(0x28) /**< 1 signed 2-byte constant. */
333#define DW_OP_eq UINT8_C(0x29) /**< 0 operands. */
334#define DW_OP_ge UINT8_C(0x2a) /**< 0 operands. */
335#define DW_OP_gt UINT8_C(0x2b) /**< 0 operands. */
336#define DW_OP_le UINT8_C(0x2c) /**< 0 operands. */
337#define DW_OP_lt UINT8_C(0x2d) /**< 0 operands. */
338#define DW_OP_ne UINT8_C(0x2e) /**< 0 operands. */
339#define DW_OP_lit0 UINT8_C(0x30) /**< 0 operands - literals 0..31 */
340#define DW_OP_lit31 UINT8_C(0x4f) /**< last litteral. */
341#define DW_OP_reg0 UINT8_C(0x50) /**< 0 operands - reg 0..31. */
342#define DW_OP_reg31 UINT8_C(0x6f) /**< last register. */
343#define DW_OP_breg0 UINT8_C(0x70) /**< 1 operand, a SLEB128 offset. */
344#define DW_OP_breg31 UINT8_C(0x8f) /**< last branch register. */
345#define DW_OP_regx UINT8_C(0x90) /**< 1 operand, a ULEB128 register. */
346#define DW_OP_fbreg UINT8_C(0x91) /**< 1 operand, a SLEB128 offset. */
347#define DW_OP_bregx UINT8_C(0x92) /**< 2 operands, a ULEB128 register followed by a SLEB128 offset. */
348#define DW_OP_piece UINT8_C(0x93) /**< 1 operand, a ULEB128 size of piece addressed. */
349#define DW_OP_deref_size UINT8_C(0x94) /**< 1 operand, a 1-byte size of data retrieved. */
350#define DW_OP_xderef_size UINT8_C(0x95) /**< 1 operand, a 1-byte size of data retrieved. */
351#define DW_OP_nop UINT8_C(0x96) /**< 0 operands. */
352#define DW_OP_lo_user UINT8_C(0xe0) /**< First user opcode */
353#define DW_OP_hi_user UINT8_C(0xff) /**< Last user opcode. */
354/** @} */
355
356/** @name Exception Handler Pointer Encodings (GCC/LSB).
357 * @{ */
358#define DW_EH_PE_FORMAT_MASK UINT8_C(0x0f) /**< Format mask. */
359#define DW_EH_PE_APPL_MASK UINT8_C(0x70) /**< Application mask. */
360#define DW_EH_PE_indirect UINT8_C(0x80) /**< Flag: Indirect pointer. */
361#define DW_EH_PE_omit UINT8_C(0xff) /**< Special value: Omitted. */
362#define DW_EH_PE_ptr UINT8_C(0x00) /**< Format: pointer sized, unsigned. */
363#define DW_EH_PE_uleb128 UINT8_C(0x01) /**< Format: unsigned LEB128. */
364#define DW_EH_PE_udata2 UINT8_C(0x02) /**< Format: unsigned 16-bit. */
365#define DW_EH_PE_udata4 UINT8_C(0x03) /**< Format: unsigned 32-bit. */
366#define DW_EH_PE_udata8 UINT8_C(0x04) /**< Format: unsigned 64-bit. */
367#define DW_EH_PE_sleb128 UINT8_C(0x09) /**< Format: signed LEB128. */
368#define DW_EH_PE_sdata2 UINT8_C(0x0a) /**< Format: signed 16-bit. */
369#define DW_EH_PE_sdata4 UINT8_C(0x0b) /**< Format: signed 32-bit. */
370#define DW_EH_PE_sdata8 UINT8_C(0x0c) /**< Format: signed 64-bit. */
371#define DW_EH_PE_absptr UINT8_C(0x00) /**< Application: Absolute */
372#define DW_EH_PE_pcrel UINT8_C(0x10) /**< Application: PC relative, i.e. relative pointer address. */
373#define DW_EH_PE_textrel UINT8_C(0x20) /**< Application: text section relative. */
374#define DW_EH_PE_datarel UINT8_C(0x30) /**< Application: data section relative. */
375#define DW_EH_PE_funcrel UINT8_C(0x40) /**< Application: relative to start of function. */
376#define DW_EH_PE_aligned UINT8_C(0x50) /**< Application: aligned pointer. */
377/** @} */
378
379/** @name Call frame instructions.
380 * @{ */
381/** Mask to use to identify DW_CFA_advance_loc, DW_CFA_offset and DW_CFA_restore. */
382#define DW_CFA_high_bit_mask UINT8_C(0xc0)
383
384#define DW_CFA_nop UINT8_C(0x00) /**< No operands. */
385
386#define DW_CFA_advance_loc UINT8_C(0x40) /**< low 6 bits: delta to advance. */
387#define DW_CFA_set_loc UINT8_C(0x01) /**< op1: address. */
388#define DW_CFA_advance_loc1 UINT8_C(0x02) /**< op1: 1-byte delta. */
389#define DW_CFA_advance_loc2 UINT8_C(0x03) /**< op1: 2-byte delta. */
390#define DW_CFA_advance_loc4 UINT8_C(0x04) /**< op1: 4-byte delta. */
391
392#define DW_CFA_offset UINT8_C(0x80) /**< low 6 bits: register; op1: ULEB128 offset. */
393#define DW_CFA_offset_extended UINT8_C(0x05) /**< op1: ULEB128 register; op2: ULEB128 offset. */
394#define DW_CFA_offset_extended_sf UINT8_C(0x11) /**< op1: ULEB128 register; op2: SLEB128 offset. */
395#define DW_CFA_restore UINT8_C(0xc0) /**< low 6 bits: register. */
396#define DW_CFA_restore_extended UINT8_C(0x06) /**< op1: ULEB128 register. */
397#define DW_CFA_undefined UINT8_C(0x07) /**< op1: ULEB128 register. */
398#define DW_CFA_same_value UINT8_C(0x08) /**< op1: ULEB128 register. */
399#define DW_CFA_register UINT8_C(0x09) /**< op1: ULEB128 destination register; op2: ULEB128 source register. */
400#define DW_CFA_expression UINT8_C(0x10) /**< op1: ULEB128 register; op2: BLOCK. */
401
402#define DW_CFA_val_offset UINT8_C(0x14) /**< op1: ULEB128 register; op2: ULEB128. */
403#define DW_CFA_val_offset_sf UINT8_C(0x15) /**< op1: ULEB128 register; op2: SLEB128. */
404#define DW_CFA_val_expression UINT8_C(0x16) /**< op1: ULEB128 register; op2: BLOCK. */
405
406#define DW_CFA_remember_state UINT8_C(0x0a) /**< No operands. */
407#define DW_CFA_restore_state UINT8_C(0x0b) /**< No operands. */
408
409#define DW_CFA_def_cfa UINT8_C(0x0c) /**< op1: ULEB128 register; op2: ULEB128 offset. */
410#define DW_CFA_def_cfa_register UINT8_C(0x0d) /**< op1: ULEB128 register. */
411#define DW_CFA_def_cfa_offset UINT8_C(0x0e) /**< op1: ULEB128 offset. */
412#define DW_CFA_def_cfa_expression UINT8_C(0x0f) /**< op1: BLOCK. */
413#define DW_CFA_def_cfa_sf UINT8_C(0x12) /**< op1: ULEB128 register; op2: SLEB128 offset. */
414#define DW_CFA_def_cfa_offset_sf UINT8_C(0x13) /**< op1: SLEB128 offset. */
415
416#define DW_CFA_lo_user UINT8_C(0x1c) /**< User defined operands. */
417#define DW_CFA_MIPS_advance_loc8 UINT8_C(0x1d) /**< op1: 8-byte delta? */
418#define DW_CFA_GNU_window_save UINT8_C(0x2d) /**< op1: ??; op2: ?? */
419#define DW_CFA_GNU_args_size UINT8_C(0x2e) /**< op1: ??; op2: ?? */
420#define DW_CFA_GNU_negative_offset_extended UINT8_C(0x2f) /**< op1: ??; op2: ?? */
421#define DW_CFA_hi_user UINT8_C(0x3f) /**< User defined operands. */
422/** @} */
423
424
425/** @name DWREG_X86_XXX - 386+ register number mappings.
426 * @{ */
427#define DWREG_X86_EAX 0
428#define DWREG_X86_ECX 1
429#define DWREG_X86_EDX 2
430#define DWREG_X86_EBX 3
431#define DWREG_X86_ESP 4
432#define DWREG_X86_EBP 5
433#define DWREG_X86_ESI 6
434#define DWREG_X86_EDI 7
435#define DWREG_X86_RA 8 /* return address (=EIP) */
436#define DWREG_X86_EFLAGS 9
437#define DWREG_X86_ST1 11
438#define DWREG_X86_ST2 12
439#define DWREG_X86_ST3 13
440#define DWREG_X86_ST4 14
441#define DWREG_X86_ST5 15
442#define DWREG_X86_ST6 16
443#define DWREG_X86_ST7 17
444#define DWREG_X86_XMM0 21
445#define DWREG_X86_XMM1 22
446#define DWREG_X86_XMM2 23
447#define DWREG_X86_XMM3 24
448#define DWREG_X86_XMM4 25
449#define DWREG_X86_XMM5 26
450#define DWREG_X86_XMM6 27
451#define DWREG_X86_XMM7 28
452#define DWREG_X86_MM0 29
453#define DWREG_X86_MM1 30
454#define DWREG_X86_MM2 31
455#define DWREG_X86_MM3 32
456#define DWREG_X86_MM4 33
457#define DWREG_X86_MM5 34
458#define DWREG_X86_MM6 35
459#define DWREG_X86_MM7 36
460#define DWREG_X86_MXCSR 39
461#define DWREG_X86_ES 40
462#define DWREG_X86_CS 41
463#define DWREG_X86_SS 42
464#define DWREG_X86_DS 43
465#define DWREG_X86_FS 44
466#define DWREG_X86_GS 45
467#define DWREG_X86_TR 48
468#define DWREG_X86_LDTR 49
469/** @} */
470
471
472/** @name DWREG_AMD64_XXX - AMD64 register number mappings.
473 * @note This for some braindead reason the first 8 GPR are NOT in the intel
474 * encoding order, unlike the DWREG_X86_XXX variant. Utter stupidity.
475 * @{ */
476#define DWREG_AMD64_RAX 0
477#define DWREG_AMD64_RDX 1
478#define DWREG_AMD64_RCX 2
479#define DWREG_AMD64_RBX 3
480#define DWREG_AMD64_RSI 4
481#define DWREG_AMD64_RDI 5
482#define DWREG_AMD64_RBP 6
483#define DWREG_AMD64_RSP 7
484#define DWREG_AMD64_R8 8
485#define DWREG_AMD64_R9 9
486#define DWREG_AMD64_R10 10
487#define DWREG_AMD64_R11 11
488#define DWREG_AMD64_R12 12
489#define DWREG_AMD64_R13 13
490#define DWREG_AMD64_R14 14
491#define DWREG_AMD64_R15 15
492#define DWREG_AMD64_RA 16 /* return address (=RIP) */
493#define DWREG_AMD64_XMM0 17
494#define DWREG_AMD64_XMM1 18
495#define DWREG_AMD64_XMM2 19
496#define DWREG_AMD64_XMM3 20
497#define DWREG_AMD64_XMM4 21
498#define DWREG_AMD64_XMM5 22
499#define DWREG_AMD64_XMM6 23
500#define DWREG_AMD64_XMM7 24
501#define DWREG_AMD64_XMM8 25
502#define DWREG_AMD64_XMM9 26
503#define DWREG_AMD64_XMM10 27
504#define DWREG_AMD64_XMM11 28
505#define DWREG_AMD64_XMM12 29
506#define DWREG_AMD64_XMM13 30
507#define DWREG_AMD64_XMM14 31
508#define DWREG_AMD64_XMM15 32
509#define DWREG_AMD64_ST0 33
510#define DWREG_AMD64_ST1 34
511#define DWREG_AMD64_ST2 35
512#define DWREG_AMD64_ST3 36
513#define DWREG_AMD64_ST4 37
514#define DWREG_AMD64_ST5 38
515#define DWREG_AMD64_ST6 39
516#define DWREG_AMD64_ST7 40
517#define DWREG_AMD64_MM0 41
518#define DWREG_AMD64_MM1 42
519#define DWREG_AMD64_MM2 43
520#define DWREG_AMD64_MM3 44
521#define DWREG_AMD64_MM4 45
522#define DWREG_AMD64_MM5 46
523#define DWREG_AMD64_MM6 47
524#define DWREG_AMD64_MM7 48
525#define DWREG_AMD64_RFLAGS 49
526#define DWREG_AMD64_ES 50
527#define DWREG_AMD64_CS 51
528#define DWREG_AMD64_SS 52
529#define DWREG_AMD64_DS 53
530#define DWREG_AMD64_FS 54
531#define DWREG_AMD64_GS 55
532#define DWREG_AMD64_FS_BASE 58
533#define DWREG_AMD64_GS_BASE 59
534#define DWREG_AMD64_TR 62
535#define DWREG_AMD64_LDTR 63
536#define DWREG_AMD64_MXCSR 64
537#define DWREG_AMD64_FCW 65
538#define DWREG_AMD64_FSW 66
539/** @} */
540
541
542/** @name DWREG_ARM64_XXX - ARM64 register number mappings.
543 * @{ */
544#define DWREG_ARM64_X0 0
545#define DWREG_ARM64_X1 1
546#define DWREG_ARM64_X2 2
547#define DWREG_ARM64_X3 3
548#define DWREG_ARM64_X4 4
549#define DWREG_ARM64_X5 5
550#define DWREG_ARM64_X6 6
551#define DWREG_ARM64_X7 7
552#define DWREG_ARM64_X8 8
553#define DWREG_ARM64_X9 9
554#define DWREG_ARM64_X10 10
555#define DWREG_ARM64_X11 11
556#define DWREG_ARM64_X12 12
557#define DWREG_ARM64_X13 13
558#define DWREG_ARM64_X14 14
559#define DWREG_ARM64_X15 15
560#define DWREG_ARM64_X16 16
561#define DWREG_ARM64_X17 17
562#define DWREG_ARM64_X18 18
563#define DWREG_ARM64_X19 19
564#define DWREG_ARM64_X20 20
565#define DWREG_ARM64_X21 21
566#define DWREG_ARM64_X22 22
567#define DWREG_ARM64_X23 23
568#define DWREG_ARM64_X24 24
569#define DWREG_ARM64_X25 25
570#define DWREG_ARM64_X26 26
571#define DWREG_ARM64_X27 27
572#define DWREG_ARM64_X28 28
573#define DWREG_ARM64_X29 29
574#define DWREG_ARM64_X30 30
575#define DWREG_ARM64_SP 31
576#define DWREG_ARM64_BP DWREG_ARM64_X29
577#define DWREG_ARM64_LR DWREG_ARM64_X30
578#define DWREG_ARM64_PC 32
579#define DWREG_ARM64_ELR_MODE 33
580#define DWREG_ARM64_RA_SIGN_STATE 34
581#define DWREG_ARM64_TPIDRRO_ELO 35
582#define DWREG_ARM64_TPIDR_ELO 36
583#define DWREG_ARM64_TPIDR_EL1 37
584#define DWREG_ARM64_TPIDR_EL2 38
585#define DWREG_ARM64_TPIDR_EL3 39
586/* 40-45 are reserved */
587#define DWREG_ARM64_VG 46
588#define DWREG_ARM64_FFR 47
589#define DWREG_ARM64_P0 48
590#define DWREG_ARM64_P1 49
591#define DWREG_ARM64_P2 50
592#define DWREG_ARM64_P3 51
593#define DWREG_ARM64_P4 52
594#define DWREG_ARM64_P5 53
595#define DWREG_ARM64_P6 54
596#define DWREG_ARM64_P7 55
597#define DWREG_ARM64_P8 56
598#define DWREG_ARM64_P9 57
599#define DWREG_ARM64_P10 58
600#define DWREG_ARM64_P11 59
601#define DWREG_ARM64_P12 60
602#define DWREG_ARM64_P13 61
603#define DWREG_ARM64_P14 62
604#define DWREG_ARM64_P15 63
605#define DWREG_ARM64_V0 64
606#define DWREG_ARM64_V1 65
607#define DWREG_ARM64_V2 66
608#define DWREG_ARM64_V3 67
609#define DWREG_ARM64_V4 68
610#define DWREG_ARM64_V5 69
611#define DWREG_ARM64_V6 70
612#define DWREG_ARM64_V7 71
613#define DWREG_ARM64_V8 72
614#define DWREG_ARM64_V9 73
615#define DWREG_ARM64_V10 74
616#define DWREG_ARM64_V11 75
617#define DWREG_ARM64_V12 76
618#define DWREG_ARM64_V13 77
619#define DWREG_ARM64_V14 78
620#define DWREG_ARM64_V15 79
621#define DWREG_ARM64_V16 80
622#define DWREG_ARM64_V17 81
623#define DWREG_ARM64_V18 82
624#define DWREG_ARM64_V19 83
625#define DWREG_ARM64_V20 84
626#define DWREG_ARM64_V21 85
627#define DWREG_ARM64_V22 86
628#define DWREG_ARM64_V23 87
629#define DWREG_ARM64_V24 88
630#define DWREG_ARM64_V25 89
631#define DWREG_ARM64_V26 90
632#define DWREG_ARM64_V27 91
633#define DWREG_ARM64_V28 92
634#define DWREG_ARM64_V29 93
635#define DWREG_ARM64_V30 94
636#define DWREG_ARM64_V31 95
637#define DWREG_ARM64_Z0 96
638#define DWREG_ARM64_Z1 97
639#define DWREG_ARM64_Z2 98
640#define DWREG_ARM64_Z3 99
641#define DWREG_ARM64_Z4 100
642#define DWREG_ARM64_Z5 101
643#define DWREG_ARM64_Z6 102
644#define DWREG_ARM64_Z7 103
645#define DWREG_ARM64_Z8 104
646#define DWREG_ARM64_Z9 105
647#define DWREG_ARM64_Z10 106
648#define DWREG_ARM64_Z11 107
649#define DWREG_ARM64_Z12 108
650#define DWREG_ARM64_Z13 109
651#define DWREG_ARM64_Z14 110
652#define DWREG_ARM64_Z15 111
653#define DWREG_ARM64_Z16 112
654#define DWREG_ARM64_Z17 113
655#define DWREG_ARM64_Z18 114
656#define DWREG_ARM64_Z19 115
657#define DWREG_ARM64_Z20 116
658#define DWREG_ARM64_Z21 117
659#define DWREG_ARM64_Z22 118
660#define DWREG_ARM64_Z23 119
661#define DWREG_ARM64_Z24 120
662#define DWREG_ARM64_Z25 121
663#define DWREG_ARM64_Z26 122
664#define DWREG_ARM64_Z27 123
665#define DWREG_ARM64_Z28 124
666#define DWREG_ARM64_Z29 125
667#define DWREG_ARM64_Z30 126
668#define DWREG_ARM64_Z31 127
669/** @} */
670
671
672#endif /* !IPRT_INCLUDED_formats_dwarf_h */
673
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette