OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.dwarf2/] [dw2-unresolved.S] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* This testcase is part of GDB, the GNU debugger.
2
 
3
   Copyright 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4
 
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 3 of the License, or
8
   (at your option) any later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program.  If not, see .  */
17
 
18
        .data
19
 
20
/* VAR1 is wrong here, in the real inferior it is located on stack.  As both
21
   places are never modified and they are initialized to the same value it
22
   makes no difference.  Ensure the name clash for "var".  */
23
var1:   .byte   1
24
 
25
        .globl  var
26
var:    .byte   2
27
 
28
/* Debug information */
29
 
30
        .section .debug_info
31
.Lcu1_begin:
32
        /* CU header */
33
        .4byte  .Lcu1_end - .Lcu1_start         /* Length of Compilation Unit */
34
.Lcu1_start:
35
        .2byte  2                               /* DWARF Version */
36
        .4byte  .Labbrev1_begin                 /* Offset into abbrev section */
37
        .byte   4                               /* Pointer size */
38
 
39
        /* CU die */
40
        .uleb128 1                              /* Abbrev: DW_TAG_compile_unit */
41
        .4byte  cu_text_end                     /* DW_AT_high_pc */
42
        .4byte  cu_text_start                   /* DW_AT_low_pc */
43
        .ascii  "dw2-unresolved-main.c\0"       /* DW_AT_name */
44
        .ascii  "GNU C 4.3.2\0"                 /* DW_AT_producer */
45
        .byte   1                               /* DW_AT_language (C) */
46
 
47
.Ltype_uchar:
48
        .uleb128        2                       /* Abbrev: DW_TAG_base_type */
49
        .ascii          "unsigned char\0"       /* DW_AT_name */
50
        .byte           1                       /* DW_AT_byte_size */
51
        .byte           7                       /* DW_AT_encoding */
52
 
53
        /* main */
54
        .uleb128        3                       /* Abbrev: DW_TAG_subprogram */
55
        .byte           1                       /* DW_AT_decl_file */
56
        .byte           2                       /* DW_AT_decl_line */
57
        .ascii          "main\0"                /* DW_AT_name */
58
        .4byte          .Ltype_uchar-.Lcu1_begin        /* DW_AT_type */
59
        .4byte          cu_text_start           /* DW_AT_low_pc */
60
        .4byte          cu_text_end             /* DW_AT_high_pc */
61
 
62
        .uleb128        4                       /* Abbrev: DW_TAG_variable (location) */
63
        .ascii          "var\0"                 /* DW_AT_name */
64
        .byte           2f - 1f                 /* DW_AT_location */
65
1:      .byte           3                       /*   DW_OP_addr */
66
/* See VAR1 definition why this DIE is not correct.  */
67
        .4byte          var1                    /*    */
68
2:      .4byte          .Ltype_uchar-.Lcu1_begin        /* DW_AT_type */
69
 
70
        .uleb128        6                       /* Abbrev: DW_TAG_lexical_block */
71
        .4byte          extern_block_start      /* DW_AT_low_pc */
72
        .4byte          extern_block_end        /* DW_AT_high_pc */
73
 
74
        .uleb128        5                       /* Abbrev: DW_TAG_variable (extern) */
75
        .ascii          "var\0"                 /* DW_AT_name */
76
        .4byte          .Ltype_uchar-.Lcu1_begin        /* DW_AT_type */
77
        .byte           1                       /* DW_AT_external */
78
 
79
        .byte           0                        /* End of children of the lexical block */
80
 
81
        .byte           0                        /* End of children of main */
82
 
83
        .byte           0                        /* End of children of CU */
84
 
85
.Lcu1_end:
86
 
87
/* Abbrev table */
88
        .section .debug_abbrev
89
.Labbrev1_begin:
90
        .uleb128        1                       /* Abbrev code */
91
        .uleb128        0x11                    /* DW_TAG_compile_unit */
92
        .byte           1                       /* has_children */
93
        .uleb128        0x12                    /* DW_AT_high_pc */
94
        .uleb128        0x1                     /* DW_FORM_addr */
95
        .uleb128        0x11                    /* DW_AT_low_pc */
96
        .uleb128        0x1                     /* DW_FORM_addr */
97
        .uleb128        0x3                     /* DW_AT_name */
98
        .uleb128        0x8                     /* DW_FORM_string */
99
        .uleb128        0x25                    /* DW_AT_producer */
100
        .uleb128        0x8                     /* DW_FORM_string */
101
        .uleb128        0x13                    /* DW_AT_language */
102
        .uleb128        0xb                     /* DW_FORM_data1 */
103
        .byte           0x0                     /* Terminator */
104
        .byte           0x0                     /* Terminator */
105
 
106
        .uleb128        2                       /* Abbrev code */
107
        .uleb128        0x24                    /* DW_TAG_base_type */
108
        .byte           0                        /* has_children */
109
        .uleb128        0x3                     /* DW_AT_name */
110
        .uleb128        0x8                     /* DW_FORM_string */
111
        .uleb128        0xb                     /* DW_AT_byte_size */
112
        .uleb128        0xb                     /* DW_FORM_data1 */
113
        .uleb128        0x3e                    /* DW_AT_encoding */
114
        .uleb128        0xb                     /* DW_FORM_data1 */
115
        .byte           0x0                     /* Terminator */
116
        .byte           0x0                     /* Terminator */
117
 
118
        .uleb128        3                       /* Abbrev code */
119
        .uleb128        0x2e                    /* DW_TAG_subprogram */
120
        .byte           1                       /* has_children */
121
        .uleb128        0x3a                    /* DW_AT_decl_file */
122
        .uleb128        0xb                     /* DW_FORM_data1 */
123
        .uleb128        0x3b                    /* DW_AT_decl_line */
124
        .uleb128        0xb                     /* DW_FORM_data1 */
125
        .uleb128        0x3                     /* DW_AT_name */
126
        .uleb128        0x8                     /* DW_FORM_string */
127
        .uleb128        0x49                    /* DW_AT_type */
128
        .uleb128        0x13                    /* DW_FORM_ref4 */
129
        .uleb128        0x11                    /* DW_AT_low_pc */
130
        .uleb128        0x1                     /* DW_FORM_addr */
131
        .uleb128        0x12                    /* DW_AT_high_pc */
132
        .uleb128        0x1                     /* DW_FORM_addr */
133
        .byte           0x0                     /* Terminator */
134
        .byte           0x0                     /* Terminator */
135
 
136
        .uleb128        4                       /* Abbrev code (location) */
137
        .uleb128        0x34                    /* DW_TAG_variable */
138
        .byte           0                        /* has_children */
139
        .uleb128        0x3                     /* DW_AT_name */
140
        .uleb128        0x8                     /* DW_FORM_string */
141
        .uleb128        0x2                     /* DW_AT_location */
142
        .uleb128        0xa                     /* DW_FORM_block1 */
143
        .uleb128        0x49                    /* DW_AT_type */
144
        .uleb128        0x13                    /* DW_FORM_ref4 */
145
        .byte           0x0                     /* Terminator */
146
        .byte           0x0                     /* Terminator */
147
 
148
        .uleb128        5                       /* Abbrev code (extern) */
149
        .uleb128        0x34                    /* DW_TAG_variable */
150
        .byte           0                        /* has_children */
151
        .uleb128        0x3                     /* DW_AT_name */
152
        .uleb128        0x8                     /* DW_FORM_string */
153
        .uleb128        0x49                    /* DW_AT_type */
154
        .uleb128        0x13                    /* DW_FORM_ref4 */
155
        .uleb128        0x3f                    /* DW_AT_external */
156
        .uleb128        0xc                     /* DW_FORM_flag */
157
        .byte           0x0                     /* Terminator */
158
        .byte           0x0                     /* Terminator */
159
 
160
        .uleb128        6                       /* Abbrev code */
161
        .uleb128        0x0b                    /* DW_TAG_lexical_block */
162
        .byte           1                       /* has_children */
163
        .uleb128        0x11                    /* DW_AT_low_pc */
164
        .uleb128        0x1                     /* DW_FORM_addr */
165
        .uleb128        0x12                    /* DW_AT_high_pc */
166
        .uleb128        0x1                     /* DW_FORM_addr */
167
        .byte           0x0                     /* Terminator */
168
        .byte           0x0                     /* Terminator */
169
 
170
        .byte           0x0                     /* Terminator */
171
        .byte           0x0                     /* Terminator */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.