Skip to content

Commit 7902f87

Browse files
ivanivanov884jeffmahoney
authored andcommitted
gdb-rhbz795424-bitpos-lazyvalue.patch
;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). ;;=push
1 parent f3cec79 commit 7902f87

File tree

4 files changed

+403
-0
lines changed

4 files changed

+403
-0
lines changed
Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
/* This testcase is part of GDB, the GNU debugger.
2+
3+
Copyright 2012 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+
.file "longest-types-64bit.c"
19+
.text
20+
.Ltext0:
21+
.globl main
22+
main:
23+
.comm f,8,8
24+
.Letext0:
25+
.file 1 "gdb.base/longest-types-64bit.c"
26+
.section .debug_info,"",@progbits
27+
.Ldebug_info0:
28+
.4byte 0x9a /* Length of Compilation Unit Info */
29+
.2byte 0x2 /* DWARF version number */
30+
.4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
31+
.byte 0x8 /* Pointer Size (in bytes) */
32+
.uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */
33+
.4byte .LASF3 /* DW_AT_producer: "GNU C 4.7.3 20121109 (prerelease)" */
34+
.byte 0x1 /* DW_AT_language */
35+
.4byte .LASF4 /* DW_AT_name: "gdb.base/longest-types-64bit.c" */
36+
.4byte .LASF5 /* DW_AT_comp_dir: "" */
37+
.4byte .Ldebug_line0 /* DW_AT_stmt_list */
38+
.uleb128 0x2 /* (DIE (0x1d) DW_TAG_structure_type) */
39+
.ascii "foo\0" /* DW_AT_name */
40+
.4byte 0xff000002 /* DW_AT_byte_size */
41+
.byte 0x1 /* DW_AT_decl_file (gdb.base/longest-types-64bit.c) */
42+
.byte 0x12 /* DW_AT_decl_line */
43+
.4byte 0x4e /* DW_AT_sibling */
44+
.uleb128 0x3 /* (DIE (0x2c) DW_TAG_member) */
45+
.ascii "buf\0" /* DW_AT_name */
46+
.byte 0x1 /* DW_AT_decl_file (gdb.base/longest-types-64bit.c) */
47+
.byte 0x14 /* DW_AT_decl_line */
48+
.4byte 0x4e /* DW_AT_type */
49+
.byte 0x2 /* DW_AT_data_member_location */
50+
.byte 0x23 /* DW_OP_plus_uconst */
51+
.uleb128 0
52+
.uleb128 0x4 /* (DIE (0x3a) DW_TAG_member) */
53+
.4byte .LASF0 /* DW_AT_name: "buf2" */
54+
.byte 0x1 /* DW_AT_decl_file (gdb.base/longest-types-64bit.c) */
55+
.byte 0x15 /* DW_AT_decl_line */
56+
.4byte 0x73 /* DW_AT_type */
57+
.byte 0x7 /* DW_AT_data_member_location */
58+
.byte 0x23 /* DW_OP_plus_uconst */
59+
.uleb128 0xffff000000
60+
.byte 0 /* end of children of DIE 0x1d */
61+
.uleb128 0x5 /* (DIE (0x4e) DW_TAG_array_type) */
62+
.4byte 0x6c /* DW_AT_type */
63+
.4byte 0x65 /* DW_AT_sibling */
64+
.uleb128 0x6 /* (DIE (0x57) DW_TAG_subrange_type) */
65+
.4byte 0x65 /* DW_AT_type */
66+
.quad 0xfffeffffff /* DW_AT_upper_bound */
67+
.byte 0 /* end of children of DIE 0x4e */
68+
.uleb128 0x7 /* (DIE (0x65) DW_TAG_base_type) */
69+
.byte 0x8 /* DW_AT_byte_size */
70+
.byte 0x7 /* DW_AT_encoding */
71+
.4byte .LASF1 /* DW_AT_name: "sizetype" */
72+
.uleb128 0x7 /* (DIE (0x6c) DW_TAG_base_type) */
73+
.byte 0x1 /* DW_AT_byte_size */
74+
.byte 0x6 /* DW_AT_encoding */
75+
.4byte .LASF2 /* DW_AT_name: "char" */
76+
.uleb128 0x5 /* (DIE (0x73) DW_TAG_array_type) */
77+
.4byte 0x6c /* DW_AT_type */
78+
.4byte 0x83 /* DW_AT_sibling */
79+
.uleb128 0x8 /* (DIE (0x7c) DW_TAG_subrange_type) */
80+
.4byte 0x65 /* DW_AT_type */
81+
.byte 0x1 /* DW_AT_upper_bound */
82+
.byte 0 /* end of children of DIE 0x73 */
83+
.uleb128 0x9 /* (DIE (0x83) DW_TAG_variable) */
84+
.ascii "f\0" /* DW_AT_name */
85+
.byte 0x1 /* DW_AT_decl_file (gdb.base/longest-types-64bit.c) */
86+
.byte 0x16 /* DW_AT_decl_line */
87+
.4byte 0x97 /* DW_AT_type */
88+
.byte 0x1 /* DW_AT_external */
89+
.byte 0x9 /* DW_AT_location */
90+
.byte 0x3 /* DW_OP_addr */
91+
.quad f
92+
.uleb128 0xa /* (DIE (0x97) DW_TAG_pointer_type) */
93+
.byte 0x8 /* DW_AT_byte_size */
94+
.4byte 0x1d /* DW_AT_type */
95+
.byte 0 /* end of children of DIE 0xb */
96+
.section .debug_abbrev,"",@progbits
97+
.Ldebug_abbrev0:
98+
.uleb128 0x1 /* (abbrev code) */
99+
.uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */
100+
.byte 0x1 /* DW_children_yes */
101+
.uleb128 0x25 /* (DW_AT_producer) */
102+
.uleb128 0xe /* (DW_FORM_strp) */
103+
.uleb128 0x13 /* (DW_AT_language) */
104+
.uleb128 0xb /* (DW_FORM_data1) */
105+
.uleb128 0x3 /* (DW_AT_name) */
106+
.uleb128 0xe /* (DW_FORM_strp) */
107+
.uleb128 0x1b /* (DW_AT_comp_dir) */
108+
.uleb128 0xe /* (DW_FORM_strp) */
109+
.uleb128 0x10 /* (DW_AT_stmt_list) */
110+
.uleb128 0x6 /* (DW_FORM_data4) */
111+
.byte 0
112+
.byte 0
113+
.uleb128 0x2 /* (abbrev code) */
114+
.uleb128 0x13 /* (TAG: DW_TAG_structure_type) */
115+
.byte 0x1 /* DW_children_yes */
116+
.uleb128 0x3 /* (DW_AT_name) */
117+
.uleb128 0x8 /* (DW_FORM_string) */
118+
.uleb128 0xb /* (DW_AT_byte_size) */
119+
.uleb128 0x6 /* (DW_FORM_data4) */
120+
.uleb128 0x3a /* (DW_AT_decl_file) */
121+
.uleb128 0xb /* (DW_FORM_data1) */
122+
.uleb128 0x3b /* (DW_AT_decl_line) */
123+
.uleb128 0xb /* (DW_FORM_data1) */
124+
.uleb128 0x1 /* (DW_AT_sibling) */
125+
.uleb128 0x13 /* (DW_FORM_ref4) */
126+
.byte 0
127+
.byte 0
128+
.uleb128 0x3 /* (abbrev code) */
129+
.uleb128 0xd /* (TAG: DW_TAG_member) */
130+
.byte 0 /* DW_children_no */
131+
.uleb128 0x3 /* (DW_AT_name) */
132+
.uleb128 0x8 /* (DW_FORM_string) */
133+
.uleb128 0x3a /* (DW_AT_decl_file) */
134+
.uleb128 0xb /* (DW_FORM_data1) */
135+
.uleb128 0x3b /* (DW_AT_decl_line) */
136+
.uleb128 0xb /* (DW_FORM_data1) */
137+
.uleb128 0x49 /* (DW_AT_type) */
138+
.uleb128 0x13 /* (DW_FORM_ref4) */
139+
.uleb128 0x38 /* (DW_AT_data_member_location) */
140+
.uleb128 0xa /* (DW_FORM_block1) */
141+
.byte 0
142+
.byte 0
143+
.uleb128 0x4 /* (abbrev code) */
144+
.uleb128 0xd /* (TAG: DW_TAG_member) */
145+
.byte 0 /* DW_children_no */
146+
.uleb128 0x3 /* (DW_AT_name) */
147+
.uleb128 0xe /* (DW_FORM_strp) */
148+
.uleb128 0x3a /* (DW_AT_decl_file) */
149+
.uleb128 0xb /* (DW_FORM_data1) */
150+
.uleb128 0x3b /* (DW_AT_decl_line) */
151+
.uleb128 0xb /* (DW_FORM_data1) */
152+
.uleb128 0x49 /* (DW_AT_type) */
153+
.uleb128 0x13 /* (DW_FORM_ref4) */
154+
.uleb128 0x38 /* (DW_AT_data_member_location) */
155+
.uleb128 0xa /* (DW_FORM_block1) */
156+
.byte 0
157+
.byte 0
158+
.uleb128 0x5 /* (abbrev code) */
159+
.uleb128 0x1 /* (TAG: DW_TAG_array_type) */
160+
.byte 0x1 /* DW_children_yes */
161+
.uleb128 0x49 /* (DW_AT_type) */
162+
.uleb128 0x13 /* (DW_FORM_ref4) */
163+
.uleb128 0x1 /* (DW_AT_sibling) */
164+
.uleb128 0x13 /* (DW_FORM_ref4) */
165+
.byte 0
166+
.byte 0
167+
.uleb128 0x6 /* (abbrev code) */
168+
.uleb128 0x21 /* (TAG: DW_TAG_subrange_type) */
169+
.byte 0 /* DW_children_no */
170+
.uleb128 0x49 /* (DW_AT_type) */
171+
.uleb128 0x13 /* (DW_FORM_ref4) */
172+
.uleb128 0x2f /* (DW_AT_upper_bound) */
173+
.uleb128 0x7 /* (DW_FORM_data8) */
174+
.byte 0
175+
.byte 0
176+
.uleb128 0x7 /* (abbrev code) */
177+
.uleb128 0x24 /* (TAG: DW_TAG_base_type) */
178+
.byte 0 /* DW_children_no */
179+
.uleb128 0xb /* (DW_AT_byte_size) */
180+
.uleb128 0xb /* (DW_FORM_data1) */
181+
.uleb128 0x3e /* (DW_AT_encoding) */
182+
.uleb128 0xb /* (DW_FORM_data1) */
183+
.uleb128 0x3 /* (DW_AT_name) */
184+
.uleb128 0xe /* (DW_FORM_strp) */
185+
.byte 0
186+
.byte 0
187+
.uleb128 0x8 /* (abbrev code) */
188+
.uleb128 0x21 /* (TAG: DW_TAG_subrange_type) */
189+
.byte 0 /* DW_children_no */
190+
.uleb128 0x49 /* (DW_AT_type) */
191+
.uleb128 0x13 /* (DW_FORM_ref4) */
192+
.uleb128 0x2f /* (DW_AT_upper_bound) */
193+
.uleb128 0xb /* (DW_FORM_data1) */
194+
.byte 0
195+
.byte 0
196+
.uleb128 0x9 /* (abbrev code) */
197+
.uleb128 0x34 /* (TAG: DW_TAG_variable) */
198+
.byte 0 /* DW_children_no */
199+
.uleb128 0x3 /* (DW_AT_name) */
200+
.uleb128 0x8 /* (DW_FORM_string) */
201+
.uleb128 0x3a /* (DW_AT_decl_file) */
202+
.uleb128 0xb /* (DW_FORM_data1) */
203+
.uleb128 0x3b /* (DW_AT_decl_line) */
204+
.uleb128 0xb /* (DW_FORM_data1) */
205+
.uleb128 0x49 /* (DW_AT_type) */
206+
.uleb128 0x13 /* (DW_FORM_ref4) */
207+
.uleb128 0x3f /* (DW_AT_external) */
208+
.uleb128 0xc /* (DW_FORM_flag) */
209+
.uleb128 0x2 /* (DW_AT_location) */
210+
.uleb128 0xa /* (DW_FORM_block1) */
211+
.byte 0
212+
.byte 0
213+
.uleb128 0xa /* (abbrev code) */
214+
.uleb128 0xf /* (TAG: DW_TAG_pointer_type) */
215+
.byte 0 /* DW_children_no */
216+
.uleb128 0xb /* (DW_AT_byte_size) */
217+
.uleb128 0xb /* (DW_FORM_data1) */
218+
.uleb128 0x49 /* (DW_AT_type) */
219+
.uleb128 0x13 /* (DW_FORM_ref4) */
220+
.byte 0
221+
.byte 0
222+
.byte 0
223+
.section .debug_aranges,"",@progbits
224+
.4byte 0x1c /* Length of Address Ranges Info */
225+
.2byte 0x2 /* DWARF Version */
226+
.4byte .Ldebug_info0 /* Offset of Compilation Unit Info */
227+
.byte 0x8 /* Size of Address */
228+
.byte 0 /* Size of Segment Descriptor */
229+
.2byte 0 /* Pad to 16 byte boundary */
230+
.2byte 0
231+
.quad 0
232+
.quad 0
233+
.section .debug_line,"",@progbits
234+
.Ldebug_line0:
235+
.section .debug_str,"MS",@progbits,1
236+
.LASF4:
237+
.string "gdb.base/longest-types-64bit.c"
238+
.LASF3:
239+
.string "GNU C 4.7.3 20121109 (prerelease)"
240+
.LASF0:
241+
.string "buf2"
242+
.LASF1:
243+
.string "sizetype"
244+
.LASF5:
245+
.string ""
246+
.LASF2:
247+
.string "char"
248+
.ident "GCC: (GNU) 4.7.3 20121109 (prerelease)"
249+
.section .note.GNU-stack,"",@progbits
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
begin 755 gdb.base/longest-types-64bit.bz2
2+
M0EIH.3%!62936<'N#OH`"G/________^______?_Y______//]7SQD5'^/_%
3+
M=VY7?F_[X`F]]SG7531-==V:Z-.FW;M.U7=';:UH@<&FD31,E3]J'HE-/TR@
4+
M]4_5/32;%/U3]1--HU/U$#$R'I'J,FC0T-,)B'J#:CU,F@]0`/4:>F@CU/4,
5+
MA@$S2>IH!H`TR/0-$$:9`C(&FHU3VE-J;4\%,@>4T:#]49-J/4`>HT!H#3)^
6+
MJ`!H-``T]0&@-```:'J``&@`:9!`R9,@&3(`#3!#0!H``-#$--`,@``T`T#(
7+
M:`:`&0&@::,0:-```:``-`E-$1#4-3:4]3R9-39(Q/)#3R-30:9#$T!D!H&@
8+
M,CTGI!H#(#0T`#0``T`T`:``-``T`0,F3(!DR``TP0T`:``#0Q#30#(``-`-
9+
M`R&@&@!D!H&FC$&C0``&@`#0)%)H32>JGZ&!)Z1B1X@)DTVC4>H`&0:``R&@
10+
M,C0:``T``,C0``!H``#(`T`:#0U^\?]7K8M.96V/2[?M*DC)>WIUF)H7T\<T
11+
M[0D)70G25.YB!,:;8Q(;&XPAB4+$Q%:P)PA-;E=!-&$KNR22EM>$:KKRE&\Q
12+
M..M]L1*,!>D!X)RW,[,1I,9N%X-N&2+*:&)DJY4(VFQG%9K[/?J06WACF6-I
13+
MJ&JJ9,ZK4;X28M@[==%ME(A54:%>+3->MRK(G!8#TY>@E$6DR&<_5:C&/RZE
14+
MI<ON+RY5`LA"@DD$$DF!I9O]5X%G985_=V<.;?K9:G2R-#K<CB,1;26A<H4G
15+
M3R3I!)WX,-%>,!E6#`;*8R*E@++*))U)[6=OKFM%'+$-H5\X@1D)_Y*"NKV.
16+
M&\F8?SXW^<O][email protected]_SKZ#4-`>HQ:Y@(Q[.>PEG=]@^
17+
M%C"3EZ/1X'H*02ZQH":6"@;8Z0LEW6<OKJ%$`01%`B;O!N*W1V.HC$``,:CS
18+
M6(/OT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line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* This testcase is part of GDB, the GNU debugger.
2+
3+
Copyright 2012 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+
struct foo
19+
{
20+
char buf[0xffff000000];
21+
char buf2[2];
22+
} *f;
23+
24+
int
25+
main (void)
26+
{
27+
return 0;
28+
}

0 commit comments

Comments
 (0)