infrun.c:resume: currently_stepping after clearing stepped_breakpoint
authorPedro Alves <palves@redhat.com>
Mon, 30 Mar 2015 15:39:56 +0000 (16:39 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 1 Apr 2015 14:35:38 +0000 (15:35 +0100)
commit6b403daae993621542c249c00ca1e6d3cfef1aa4
tree02d4f353b0972a35e4ba80ddae77cae75ad26c1d
parenta14711808ece04167523a42f063ddb741e8ca866
infrun.c:resume: currently_stepping after clearing stepped_breakpoint

My all-stop-on-top-of-non-stop series manages to shows regressions due
to this latent bug.  currently_stepping returns true if
stepped_breakpoint is set.  Obviously we should clear
it before checking currently_stepping, not after.

Tested on x86_64 Fedora 20.

gdb/ChangeLog:
2015-04-01  Pedro Alves  <palves@redhat.com>

* infrun.c (resume): Check currently_stepping after clearing
stepped_breakpoint, not before.
gdb/ChangeLog
gdb/infrun.c