remote: Move discard_pending_stop_replies call
authorPedro Alves <palves@redhat.com>
Tue, 22 May 2018 17:22:09 +0000 (18:22 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 22 May 2018 17:33:44 +0000 (18:33 +0100)
commit9607784ac00f9278094e962963f6271472b1dfca
treedc36f4528326e67a5b7cee26e314b748605a7b39
parent0e9a6b2f040e016c9dd7f9841a0272e488ed2fd5
remote: Move discard_pending_stop_replies call

This helps because discard_pending_stop_replies will later become a
method of remote_target.  Otherwise, when we have multiple instances
of remote_target, we'd have to make discard_pending_stop_replies find
the inferior's target_ops, and upcast it to remote_target (if indeed a
remote) to find the pending stop replies queue to clear.

gdb/ChangeLog:
2018-05-22  Pedro Alves  <palves@redhat.com>

* remote.c (remote_target::mourn_inferior): Move
discard_pending_stop_replies call here from ...
(_initialize_remote): ... here.
gdb/ChangeLog
gdb/remote.c