Introduce target_{stop,continue}_ptid
authorGary Benson <gbenson@redhat.com>
Thu, 11 Sep 2014 10:19:56 +0000 (11:19 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 11 Sep 2014 10:19:56 +0000 (11:19 +0100)
commitf8c1d06b82ab0fd56bcffc9030cb44b5a946113e
tree5150db99cd6c829a8f3cd9d96f24ac57a549fb2a
parent721ec300e1e27c2fa7540ef97f39b6c5ce65083f
Introduce target_{stop,continue}_ptid

This commit introduces two new functions to stop and restart target
processes that shared code can use and that clients must implement.
It also changes some shared code to use these functions.

gdb/ChangeLog:

* target/target.h (target_stop_ptid, target_continue_ptid):
Declare.
* target.c (target_stop_ptid, target_continue_ptid): New
functions.
* common/agent.c [!GDBSERVER]: Don't include infrun.h.
(agent_run_command): Always use target_stop_ptid and
target_continue_ptid.

gdb/gdbserver/ChangeLog:

* target.c (target_stop_ptid, target_continue_ptid): New
functions.
gdb/ChangeLog
gdb/common/agent.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/target.c
gdb/target.c
gdb/target/target.h