1/* This testcase is part of GDB, the GNU debugger.
2
3   Copyright 2011-2020 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 <http://www.gnu.org/licenses/>.  */
17
18	.data
19
20	.section .debug_info
21.Lcu1_begin:
22	/* CU header */
23	.4byte	.Lcu1_end - .Lcu1_start		/* Length of Compilation Unit */
24.Lcu1_start:
25	.2byte	2				/* DWARF Version */
26	.4byte	.Labbrev1_begin			/* Offset into abbrev section */
27	.byte	4				/* Pointer size */
28
29	/* CU die */
30	.uleb128 1				/* Abbrev: DW_TAG_compile_unit */
31	.ascii	"dw2-var-zero-addr.c\0"		/* DW_AT_name */
32	.ascii	"GNU C 4.3.2\0"			/* DW_AT_producer */
33	.byte	1				/* DW_AT_language (C) */
34
35.Ltype_uchar:
36	.uleb128	2			/* Abbrev: DW_TAG_base_type */
37	.ascii		"int\0"			/* DW_AT_name */
38	.byte		4			/* DW_AT_byte_size */
39	.byte		5			/* DW_AT_encoding */
40
41	.uleb128	3			/* Abbrev: DW_TAG_variable (location) */
42	.ascii		"var\0"			/* DW_AT_name */
43	.byte		2f - 1f			/* DW_AT_location */
441:	.byte		3			/*   DW_OP_addr */
45	.4byte		0			/*   <addr> */
462:	.4byte		.Ltype_uchar-.Lcu1_begin	/* DW_AT_type */
47
48	.byte		0			/* End of children of CU */
49
50.Lcu1_end:
51
52/* Abbrev table */
53	.section .debug_abbrev
54.Labbrev1_begin:
55	.uleb128	1			/* Abbrev code */
56	.uleb128	0x11			/* DW_TAG_compile_unit */
57	.byte		1			/* has_children */
58	.uleb128	0x3			/* DW_AT_name */
59	.uleb128	0x8			/* DW_FORM_string */
60	.uleb128	0x25			/* DW_AT_producer */
61	.uleb128	0x8			/* DW_FORM_string */
62	.uleb128	0x13			/* DW_AT_language */
63	.uleb128	0xb			/* DW_FORM_data1 */
64	.byte		0x0			/* Terminator */
65	.byte		0x0			/* Terminator */
66
67	.uleb128	2			/* Abbrev code */
68	.uleb128	0x24			/* DW_TAG_base_type */
69	.byte		0			/* has_children */
70	.uleb128	0x3			/* DW_AT_name */
71	.uleb128	0x8			/* DW_FORM_string */
72	.uleb128	0xb			/* DW_AT_byte_size */
73	.uleb128	0xb			/* DW_FORM_data1 */
74	.uleb128	0x3e			/* DW_AT_encoding */
75	.uleb128	0xb			/* DW_FORM_data1 */
76	.byte		0x0			/* Terminator */
77	.byte		0x0			/* Terminator */
78
79	.uleb128	3			/* Abbrev code (location) */
80	.uleb128	0x34			/* DW_TAG_variable */
81	.byte		0			/* has_children */
82	.uleb128	0x3			/* DW_AT_name */
83	.uleb128	0x8			/* DW_FORM_string */
84	.uleb128	0x2			/* DW_AT_location */
85	.uleb128	0xa			/* DW_FORM_block1 */
86	.uleb128	0x49			/* DW_AT_type */
87	.uleb128	0x13			/* DW_FORM_ref4 */
88	.byte		0x0			/* Terminator */
89	.byte		0x0			/* Terminator */
90
91	.byte		0x0			/* Terminator */
92	.byte		0x0			/* Terminator */
93