From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A339E384C007; Tue, 17 Nov 2020 13:37:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A339E384C007 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug fortran/26910] New: [fortran] Printing dynamic string with DW_AT_string_length of class loclistpr fails Date: Tue, 17 Nov 2020 13:37:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: fortran X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2020 13:37:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26910 Bug ID: 26910 Summary: [fortran] Printing dynamic string with DW_AT_string_length of class loclistpr fails Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: fortran Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider test-case gdb.opt/fortran-string.f90, as found here ( https://src.fedoraproject.org/rpms/gdb/blob/master/f/gdb-archer-vla-tests.p= atch ), but with a print line added to prevent inlining of f: ... 1 subroutine f(s) 2 character*(*) s 3 s =3D s 4 print *, s 5 end 6 7 program main 8 call f ('foo') 9 end ... When printing the type of s at line 4: ... $ gdb.sh -batch ./outputs/gdb.opt/fortran-string/fortran-string \ -ex "b 4" \ -ex r \ -ex "ptype s" Breakpoint 1 at 0x400734: file fortran-string.f90, line 4. Breakpoint 1, f (s=3D..., _s=3D_s@entry=3D3) at fortran-string.f90:4 4 print *, s type =3D character*1 ... we get "character*1", while we'd like to see string length 3 there. --=20 You are receiving this mail because: You are on the CC list for the bug.=