Bug 1376017 - DWARF regression: fortran: Missing DW_AT_byte_stride for an array record array selection
Summary: DWARF regression: fortran: Missing DW_AT_byte_stride for an array record arra...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: gcc
Version: DTS 6.0 RHEL 7
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 6.0
Assignee: Jakub Jelinek
QA Contact: Michael Petlan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 12:57 UTC by Jan Kratochvil
Modified: 2018-05-03 05:14 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-05-03 05:13:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
dwarf-stridex.f90 (445 bytes, text/plain)
2016-09-14 12:58 UTC, Jan Kratochvil
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 77589 0 None None None 2016-09-14 12:56:59 UTC
Red Hat Product Errata RHBA-2018:1293 0 None None None 2018-05-03 05:14:38 UTC

Description Jan Kratochvil 2016-09-14 12:57:00 UTC
FAIL: gcc-6.2.1-1.fc26.x86_64
PASS: gcc-4.8.5-4.el7.x86_64

Fedora testcase: gdb.fortran/dwarf-stride.exp
! File written by Alan Matsuoka.

gfortran -o dwarf-stridex dwarf-stridex.f90 -Wall -g;../gdb ./dwarf-stridex -batch -ex 'b 14' -ex r -ex 'p c40pt(2)'

p c40pt(2)^M
$2 = '\001\000\000\000\061-hello', ' ' <repeats 29 times>^M
(gdb) FAIL: gdb.fortran/dwarf-stride.exp: p c40pt(2)

p c40pt(2)^M
$2 = '1-hello', ' ' <repeats 33 times>^M
(gdb) PASS: gdb.fortran/dwarf-stride.exp: p c40pt(2)

FAIL:
 <2><174>: Abbrev Number: 18 (DW_TAG_subrange_type)
    <175>   DW_AT_lower_bound : (DW_OP_push_object_address; DW_OP_plus_uconst: 32; DW_OP_deref)
    <17a>   DW_AT_upper_bound : (DW_OP_push_object_address; DW_OP_plus_uconst: 40; DW_OP_deref)

PASS:
 <2><127>: Abbrev Number: 14 (DW_TAG_subrange_type)
    <128>   DW_AT_lower_bound : (DW_OP_push_object_address; DW_OP_plus_uconst: 32; DW_OP_deref)
    <12d>   DW_AT_upper_bound : (DW_OP_push_object_address; DW_OP_plus_uconst: 40; DW_OP_deref)
    <132>   DW_AT_byte_stride : (DW_OP_push_object_address; DW_OP_plus_uconst: 24; DW_OP_deref; DW_OP_fbreg: -80; DW_OP_deref; DW_OP_mul)

Comment 1 Jan Kratochvil 2016-09-14 12:58:22 UTC
Created attachment 1200823 [details]
dwarf-stridex.f90

Comment 12 Michael Petlan 2018-04-26 16:54:52 UTC
Passes with devtoolset-7-gcc-7.3.1-5.4, in the way that DW_AT_byte_stride is present in the dwarf dump. However, the string '1-hello' is not printed since GDB does not know the proper tags yet.
VERIFIED.

Comment 15 errata-xmlrpc 2018-05-03 05:13:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:1293


Note You need to log in before you can comment on or make changes to this bug.