Introduce switch_to_inferior_no_thread
authorPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:47 +0000 (20:05 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:47 +0000 (20:05 +0000)
commitdb2d40f7d0b8477ca5ad9e305b8137a085434c97
treebce10d93633a8fe79fa2e14e994f9b89799bf922
parentbd420a2dfff64978feb1659d3b77c7601b98463f
Introduce switch_to_inferior_no_thread

Several places want to switch context to an inferior and its pspace,
while at the same time switch to "no thread selected".  This commit
adds a function that does that, and uses it in a few places.

gdb/ChangeLog:
2020-01-10  Pedro Alves <palves@redhat.com>

* inferior.c (switch_to_inferior_no_thread): New function,
factored out from ...
(inferior_command): ... here.
* inferior.h (switch_to_inferior_no_thread): Declare.
* mi/mi-main.c (run_one_inferior): Use
switch_to_inferior_no_thread.
gdb/ChangeLog
gdb/inferior.c
gdb/inferior.h
gdb/mi/mi-main.c
This page took 0.024222 seconds and 4 git commands to generate.