]> git.saurik.com Git - apple/ld64.git/blame - src/ld/dwarf2.h
ld64-123.2.1.tar.gz
[apple/ld64.git] / src / ld / dwarf2.h
CommitLineData
d696c285
A
1/*
2 * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23/* These constants were taken from version 3 of the DWARF standard,
24 which is Copyright (c) 2005 Free Standards Group, and
25 Copyright (c) 1992, 1993 UNIX International, Inc. */
26
55e3d2f6
A
27#ifndef __DWARF2_H__
28#define __DWARF2_H__
29
d696c285
A
30/* This is not a complete list. */
31enum {
32 DW_TAG_compile_unit = 17,
33 DW_TAG_partial_unit = 60
34};
35
36/* This is not a complete list. */
37enum {
38 DW_AT_sibling = 1,
39 DW_AT_name = 3,
40 DW_AT_stmt_list = 16,
41 DW_AT_comp_dir = 27
42};
43
44enum {
45 DW_FORM_addr = 1,
46 DW_FORM_block2 = 3,
47 DW_FORM_block4,
48 DW_FORM_data2,
49 DW_FORM_data4,
50 DW_FORM_data8,
51 DW_FORM_string,
52 DW_FORM_block,
53 DW_FORM_block1,
54 DW_FORM_data1,
55 DW_FORM_flag,
56 DW_FORM_sdata,
57 DW_FORM_strp,
58 DW_FORM_udata,
59 DW_FORM_ref_addr,
60 DW_FORM_ref1,
61 DW_FORM_ref2,
62 DW_FORM_ref4,
63 DW_FORM_ref8,
64 DW_FORM_ref_udata,
65 DW_FORM_indirect /* 22 */
66};
67
68enum {
69 DW_LNS_extended_op = 0,
70 DW_LNS_copy,
71 DW_LNS_advance_pc,
72 DW_LNS_advance_line,
73 DW_LNS_set_file,
74 DW_LNS_set_column,
75 DW_LNS_negate_stmt,
76 DW_LNS_set_basic_block,
77 DW_LNS_const_add_pc,
78 DW_LNS_fixed_advance_pc,
79 DW_LNS_set_prologue_end,
80 DW_LNS_set_epilogue_begin,
81 DW_LNS_set_isa
82};
83
84enum {
85 DW_LNE_end_sequence = 1,
86 DW_LNE_set_address,
87 DW_LNE_define_file
88};
55e3d2f6
A
89
90#endif