Imported Upstream version 7.9
[platform/upstream/gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-abs-hi-pc-hello-dbg.S
1 /* Copyright 2014-2015 Free Software Foundation, Inc.
2
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; either version 3 of the License, or
6    (at your option) any later version.
7
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.
12
13    You should have received a copy of the GNU General Public License
14    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
15
16         .section        .debug_info
17         .4byte  .Ledebug_info0 - .Lsdebug_info0 /* Length of Compilation Unit Info */
18 .Lsdebug_info0:
19         .2byte  0x2     /* DWARF version number */
20         .4byte  .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
21         .byte   0x4     /* Pointer Size (in bytes) */
22         .uleb128 0x1    /* (DIE (0xb) DW_TAG_compile_unit) */
23         .ascii "GNU C 4.7.4 20140206 for GNAT Pro 7.3.0w (20140206)\0"
24         .byte   0x1     /* DW_AT_language */
25         .ascii  "dw2-abs-hi-pc-hello.c\0"     /* DW_AT_name */
26         .ascii  "/tmp\0"        /* DW_AT_comp_dir */
27         .4byte  .hello_start    /* DW_AT_low_pc */
28         .4byte  .hello_end      /* DW_AT_high_pc */
29         .4byte  .Ldebug_line0   /* DW_AT_stmt_list */
30         .uleb128 0x2    /* (DIE (0x2d) DW_TAG_subprogram) */
31         .byte   0x1     /* DW_AT_external */
32         .ascii  "hello\0"
33         .byte   0x1     /* DW_AT_decl_file (hello.c) */
34         .byte   0x13    /* DW_AT_decl_line */
35         .byte   0x1     /* DW_AT_prototyped */
36         .4byte  .hello_start    /* DW_AT_low_pc */
37         .4byte  .hello_end      /* DW_AT_high_pc */
38         .byte   0       /* end of children of DIE 0xb */
39 .Ledebug_info0:
40
41         .section        .debug_abbrev
42 .Ldebug_abbrev0:
43         .uleb128 0x1    /* (abbrev code) */
44         .uleb128 0x11   /* (TAG: DW_TAG_compile_unit) */
45         .byte   0x1     /* DW_children_yes */
46         .uleb128 0x25   /* (DW_AT_producer) */
47         .uleb128 0x8    /* (DW_FORM_string) */
48         .uleb128 0x13   /* (DW_AT_language) */
49         .uleb128 0xb    /* (DW_FORM_data1) */
50         .uleb128 0x3    /* (DW_AT_name) */
51         .uleb128 0x8    /* (DW_FORM_string) */
52         .uleb128 0x1b   /* (DW_AT_comp_dir) */
53         .uleb128 0x8    /* (DW_FORM_string) */
54         .uleb128 0x11   /* (DW_AT_low_pc) */
55         .uleb128 0x6    /* (DW_FORM_data4) */
56         .uleb128 0x12   /* (DW_AT_high_pc) */
57         .uleb128 0x6    /* (DW_FORM_data4) */
58         .uleb128 0x10   /* (DW_AT_stmt_list) */
59         .uleb128 0x6    /* (DW_FORM_data4) */
60         .byte   0
61         .byte   0
62         .uleb128 0x2    /* (abbrev code) */
63         .uleb128 0x2e   /* (TAG: DW_TAG_subprogram) */
64         .byte   0       /* DW_children_no */
65         .uleb128 0x3f   /* (DW_AT_external) */
66         .uleb128 0xc    /* (DW_FORM_flag) */
67         .uleb128 0x3    /* (DW_AT_name) */
68         .uleb128 0x8    /* (DW_FORM_string) */
69         .uleb128 0x3a   /* (DW_AT_decl_file) */
70         .uleb128 0xb    /* (DW_FORM_data1) */
71         .uleb128 0x3b   /* (DW_AT_decl_line) */
72         .uleb128 0xb    /* (DW_FORM_data1) */
73         .uleb128 0x27   /* (DW_AT_prototyped) */
74         .uleb128 0xc    /* (DW_FORM_flag) */
75         .uleb128 0x11   /* (DW_AT_low_pc) */
76         .uleb128 0x6    /* (DW_FORM_data4) */
77         .uleb128 0x12   /* (DW_AT_high_pc) */
78         .uleb128 0x6    /* (DW_FORM_data4) */
79         .byte   0
80         .byte   0
81         .byte   0
82
83         .section        .debug_line
84 .Ldebug_line0:
85         .4byte  LELT-LSLT  /* Length of Source Line Info */
86 LSLT:
87         .2byte  0x2    /* DWARF Version */
88         .4byte  LELTP-LASLTP     /* Prolog Length */
89 LASLTP:
90         .byte   0x1      /* Minimum Instruction Length */
91         .byte   0x1      /* Default is_stmt_start flag */
92         .byte   0x1      /* Line Base Value (Special Opcodes) */
93         .byte   0x1      /* Line Range Value (Special Opcodes) */
94         .byte   0xd      /* Special Opcode Base */
95         .byte   0        /* opcode: 0x1 has 0 args */
96         .byte   0x1      /* opcode: 0x2 has 1 args */
97         .byte   0x1      /* opcode: 0x3 has 1 args */
98         .byte   0x1      /* opcode: 0x4 has 1 args */
99         .byte   0x1      /* opcode: 0x5 has 1 args */
100         .byte   0        /* opcode: 0x6 has 0 args */
101         .byte   0        /* opcode: 0x7 has 0 args */
102         .byte   0        /* opcode: 0x8 has 0 args */
103         .byte   0x1      /* opcode: 0x9 has 1 args */
104         .byte   0        /* opcode: 0xa has 0 args */
105         .byte   0        /* opcode: 0xb has 0 args */
106         .byte   0x1      /* opcode: 0xc has 1 args */
107         .byte   0        /* End directory table */
108         .ascii "dw2-abs-hi-pc-hello.c\0"       /* File Entry: 0x1 */
109         .uleb128 0
110         .uleb128 0
111         .uleb128 0
112         .byte   0        /* End file name table */
113 LELTP:
114         .byte   0        /* set address to .hello_start */
115         .uleb128 0x5
116         .byte   0x2
117         .4byte  .hello_start
118         .byte   0x3      /* DW_LNS_advance_line */
119         .sleb128 22      /* ... to 23 */
120         .byte   0x5      /* column 0 */
121         .uleb128 0       /* 0 */
122         .byte           1       /* DW_LNS_copy */
123
124         .byte   0        /* set address to .hello0 */
125         .uleb128 0x5
126         .byte   0x2
127         .4byte  .hello0
128         .byte   0x3      /* DW_LNS_advance_line */
129         .sleb128 1       /* ... to 24 */
130         .byte   0x5      /* column 0 */
131         .uleb128 0       /* 0 */
132         .byte           1       /* DW_LNS_copy */
133
134         .byte   0        /* set address to .hello1 */
135         .uleb128 0x5
136         .byte   0x2
137         .4byte  .hello1
138         .byte   0x3      /* DW_LNS_advance_line */
139         .sleb128 1       /* ... to 25 */
140         .byte   0x5      /* column 0 */
141         .uleb128 0       /* 0 */
142         .byte           1       /* DW_LNS_copy */
143
144         .byte   0        /* set address to .hello_end */
145         .uleb128 0x5
146         .byte   0x2
147         .4byte  .hello_end
148         .byte   0        /* end sequence */
149         .uleb128 0x1
150         .byte   0x1
151 LELT: