Bug 2183527 - Cannot set breakpoint unless add -gno-statement-frontiers to compiler arguments
Summary: Cannot set breakpoint unless add -gno-statement-frontiers to compiler arguments
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: gcc
Version: 9.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Marek Polacek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-31 13:58 UTC by Paulo Andrade
Modified: 2023-07-18 14:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-04 16:25:07 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debuginfo-problem.sh (2.18 KB, text/plain)
2023-03-31 13:58 UTC, Paulo Andrade
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-153744 0 None None None 2023-03-31 13:59:24 UTC

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


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