Bug 2183524 - 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 Developer Toolset
Classification: Red Hat
Component: gcc
Version: DTS 11.0 RHEL 7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: alpha
: 9.1
Assignee: Marek Polacek
QA Contact: Martin Cermak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-31 13:51 UTC by Paulo Andrade
Modified: 2023-07-18 14:10 UTC (History)
2 users (show)

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


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DTS-570 0 None None None 2023-03-31 13:54:00 UTC

Description Paulo Andrade 2023-03-31 13:51:42 UTC
Created attachment 1954890 [details]
debuginfo-problem.sh

Example reproducer:

$ mkdir test
$ cd test
$ scl enable devtoolset-11 -- bash
$ ../debuginfo-problem.sh

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

#workaround="-gno-statement-frontiers"

  This problem is not specific to devtoolset-11. It happens in any gcc 11
or newer.

  The problem also goes away if compiling with -O0.

Comment 2 Marek Polacek 2023-04-04 16:18:35 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.