Bug 2183527

Summary: Cannot set breakpoint unless add -gno-statement-frontiers to compiler arguments
Product: Red Hat Enterprise Linux 9 Reporter: Paulo Andrade <pandrade>
Component: gccAssignee: Marek Polacek <mpolacek>
gcc sub component: system-version QA Contact: qe-baseos-tools-bugs
Status: CLOSED UPSTREAM Docs Contact:
Severity: medium    
Priority: unspecified CC: ahajkova, fweimer, jakub, ohudlick, sipoyare
Version: 9.3   
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-04 16:25:07 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:
Attachments:
Description Flags
debuginfo-problem.sh none

Description Paulo Andrade 2023-03-31 13:58:57 UTC
Created attachment 1954892 [details]
debuginfo-problem.sh

Example reproducer:

$ mkdir test
$ cd test
$ ../debuginfo-problem.sh

To test the workaround, edit debuginfo.sh and uncomment the line:

#workaround="-gno-statement-frontiers"

The problem also goes away if compiling with -O0.

Comment 1 Marek Polacek 2023-04-04 16:25:07 UTC
Same resolution as https://bugzilla.redhat.com/show_bug.cgi?id=2183525#c4