gdb/infrun: use switch_to_target_no_thread to switch the target
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 7 Sep 2020 12:40:40 +0000 (14:40 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 7 Sep 2020 13:29:05 +0000 (15:29 +0200)
commit7f08fd5186df8c58135c8adb71772cfa3f93d405
tree800d41cf992c0507dc2cae19413ce038bdb8312e
parentd2a54558074287721ce9e47142f7fa92bda15531
gdb/infrun: use switch_to_target_no_thread to switch the target

Use the available `switch_to_target_no_thread` function to switch the
target.  This is a refactoring.

gdb/ChangeLog:
2020-09-07  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

* infrun.c (fetch_inferior_event): Use
`switch_to_target_no_thread` to switch the target.
gdb/ChangeLog
gdb/infrun.c