This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/84550] [8 Regression] stepping through gcc does not work with gdb 8.0.1
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Feb 2018 16:22:20 +0000
- Subject: [Bug debug/84550] [8 Regression] stepping through gcc does not work with gdb 8.0.1
- Auto-submitted: auto-generated
- References: <bug-84550-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84550
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC bisection reveals that this started misbehaving with r249105 when
-freorder-blocks-and-partition has been turned on by default, and with explicit
-freorder-blocks-and-partition it started failing with r249070 abort has been
marked as cold; before that this small testcase didn't use hot/cold
partitioning, while now it does.
The only instruction in the cold section in this testcase is actually:
call abort
so it is unclear to me how this prevents step from working properly. And
strangely, if I do
b main
r
s
s
s
s
s
(many times) and I step through into qux that way and step through the same
statement as after b qux; r, it works fine.