diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6e97bd46a15..ff1bc14eca3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-01-10 Pedro Alves + + * remote.c (remote_target::mourn_inferior): No longer check + whether the target is running. + 2020-01-10 Pedro Alves * corelow.c (core_target::has_execution): Change parameter type to diff --git a/gdb/remote.c b/gdb/remote.c index 539b27ebd29..51fa5da0c18 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9843,26 +9843,6 @@ remote_target::mourn_inferior () /* Call common code to mark the inferior as not running. */ generic_mourn_inferior (); - - if (!have_inferiors ()) - { - if (!remote_multi_process_p (rs)) - { - /* Check whether the target is running now - some remote stubs - automatically restart after kill. */ - putpkt ("?"); - getpkt (&rs->buf, 0); - - if (rs->buf[0] == 'S' || rs->buf[0] == 'T') - { - /* Assume that the target has been restarted. Set - inferior_ptid so that bits of core GDB realizes - there's something here, e.g., so that the user can - say "kill" again. */ - inferior_ptid = magic_null_ptid; - } - } - } } bool