Bug 1815690

Summary: C parser confuses struct members with the same name as filenames
Product: Red Hat Enterprise Linux 7 Reporter: Arthur Ferreira <aferreir>
Component: gdbAssignee: Keith Seitz <keiths>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: dsmith, gdb-bugs, jclere, mcermak, ohudlick
Target Milestone: rcKeywords: Bugfix, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-7.6.1-120.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 20:55:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1782203    

Comment 2 Keith Seitz 2020-03-23 19:23:04 UTC
This bug occurs because the C expression parser classifies `list' as a file name.
Hence, "b->FILENAME" is a syntax error.

This appears to have been fixed upstream in commit 59498c305e6f1db2a1ed8d44cb58f0d24ec092fe,
and we should have a shot at backporting that patch.

In the meantime, DTS9 contains this patch, and that might offer you a path forward until/if
this bug is marked for inclusion in a release.

Comment 7 Michal Kolar 2020-06-04 07:21:22 UTC
Reproduced against gdb-7.6.1-119.el7.x86_64 and verified against gdb-7.6.1-120.el7.x86_64

Comment 9 errata-xmlrpc 2020-09-29 20:55:06 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 (gdb bug fix and enhancement update), 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-2020:4033