gdb: Clean up remote.c:remote_resume
authorPedro Alves <palves@redhat.com>
Wed, 26 Oct 2016 10:08:26 +0000 (11:08 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 26 Oct 2016 15:15:28 +0000 (16:15 +0100)
commit7b68ffbb32645c5383e74f27248a1c1c7ecd241a
tree56008be890dafa0e58a0fa9638f4675316534e33
parent2a3a7490761797388aae10da3c4b2fba6b876007
gdb: Clean up remote.c:remote_resume

Just some refactoring / TLC.  Mainly split the old c/s/C/S packet
handling to a separate function.

gdb/ChangeLog:
2016-10-26  Pedro Alves  <palves@redhat.com>

* remote.c (remote_resume_with_hc): New function, factored out
from ...
(remote_resume): ... this.  Always try vCont first.
(remote_vcont_resume): Rename to ...
(remote_resume_with_vcont): ... this.  Bail out if execution
direction is reverse.
gdb/ChangeLog
gdb/remote.c