Bug 23021 - Setting breakpoints with -freorder-blocks-and-partition
Summary: Setting breakpoints with -freorder-blocks-and-partition
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 8.0.1
: P2 normal
Target Milestone: 8.2
Assignee: Kevin Buettner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-31 12:21 UTC by Thomas Koenig
Modified: 2018-08-26 09:55 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Koenig 2018-03-31 12:21:42 UTC
There is a major problem in setting breakpoints in gcc functions
when -freorder-blocks-and-partition is in effect (which is
the default in recent gcc): Stepping with "s" is broken when
stepping into a function.

A test case plus some discussion can be found at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84550 .
Comment 1 Pedro Alves 2018-04-13 11:05:23 UTC
I'm setting milestone so we don't forget evaluating before 8.1.1 is out.
Comment 2 Joel Brobecker 2018-04-30 22:25:12 UTC
Changing the milestone as discussed on gdb-patches:
https://www.sourceware.org/ml/gdb-patches/2018-04/msg00455.html
Comment 3 Kevin Buettner 2018-08-25 05:46:54 UTC
Fixed in both HEAD and gdb-8.2-branch by this set of patches:

https://sourceware.org/ml/gdb-patches/2018-08/msg00541.html
Comment 4 Joel Brobecker 2018-08-26 09:55:12 UTC
AFAICT, this is now solved, so closing. Please re-open if mistaken. Thanks!