mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 03:41:58 +08:00
Rename target_{stop,continue}_ptid
This commit renames target_stop_ptid as target_stop_and_wait and target_continue_ptid as target_continue_no_signal. Comments are updated to more fully describe the functions' behaviour. gdb/ChangeLog: * target/target.h (target_stop_ptid): Renamed as... (target_stop_and_wait): New function. Updated comment. All uses updated. (target_continue_ptid): Renamed as... (target_continue_no_signal): New function. Updated comment. All uses updated.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2014-09-22 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
|
* target/target.h (target_stop_ptid): Renamed as...
|
||||||
|
(target_stop_and_wait): New function. Updated comment.
|
||||||
|
All uses updated.
|
||||||
|
(target_continue_ptid): Renamed as...
|
||||||
|
(target_continue_no_signal): New function. Updated comment.
|
||||||
|
All uses updated.
|
||||||
|
|
||||||
2014-09-22 Pedro Alves <palves@redhat.com>
|
2014-09-22 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* NEWS: Mention merge of "breakpoint always-inserted" modes "off"
|
* NEWS: Mention merge of "breakpoint always-inserted" modes "off"
|
||||||
|
@ -204,7 +204,7 @@ agent_run_command (int pid, const char *cmd, int len)
|
|||||||
DEBUG_AGENT ("agent: resumed helper thread\n");
|
DEBUG_AGENT ("agent: resumed helper thread\n");
|
||||||
|
|
||||||
/* Resume helper thread. */
|
/* Resume helper thread. */
|
||||||
target_continue_ptid (ptid);
|
target_continue_no_signal (ptid);
|
||||||
|
|
||||||
fd = gdb_connect_sync_socket (pid);
|
fd = gdb_connect_sync_socket (pid);
|
||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
@ -238,7 +238,7 @@ agent_run_command (int pid, const char *cmd, int len)
|
|||||||
{
|
{
|
||||||
/* Stop thread PTID. */
|
/* Stop thread PTID. */
|
||||||
DEBUG_AGENT ("agent: stop helper thread\n");
|
DEBUG_AGENT ("agent: stop helper thread\n");
|
||||||
target_stop_ptid (ptid);
|
target_stop_and_wait (ptid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fd >= 0)
|
if (fd >= 0)
|
||||||
|
@ -137,7 +137,7 @@ mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options,
|
|||||||
/* See target/target.h. */
|
/* See target/target.h. */
|
||||||
|
|
||||||
void
|
void
|
||||||
target_stop_ptid (ptid_t ptid)
|
target_stop_and_wait (ptid_t ptid)
|
||||||
{
|
{
|
||||||
struct target_waitstatus status;
|
struct target_waitstatus status;
|
||||||
int was_non_stop = non_stop;
|
int was_non_stop = non_stop;
|
||||||
@ -156,7 +156,7 @@ target_stop_ptid (ptid_t ptid)
|
|||||||
/* See target/target.h. */
|
/* See target/target.h. */
|
||||||
|
|
||||||
void
|
void
|
||||||
target_continue_ptid (ptid_t ptid)
|
target_continue_no_signal (ptid_t ptid)
|
||||||
{
|
{
|
||||||
struct thread_resume resume_info;
|
struct thread_resume resume_info;
|
||||||
|
|
||||||
|
@ -3030,7 +3030,7 @@ target_stop (ptid_t ptid)
|
|||||||
/* See target/target.h. */
|
/* See target/target.h. */
|
||||||
|
|
||||||
void
|
void
|
||||||
target_stop_ptid (ptid_t ptid)
|
target_stop_and_wait (ptid_t ptid)
|
||||||
{
|
{
|
||||||
struct target_waitstatus status;
|
struct target_waitstatus status;
|
||||||
int was_non_stop = non_stop;
|
int was_non_stop = non_stop;
|
||||||
@ -3047,7 +3047,7 @@ target_stop_ptid (ptid_t ptid)
|
|||||||
/* See target/target.h. */
|
/* See target/target.h. */
|
||||||
|
|
||||||
void
|
void
|
||||||
target_continue_ptid (ptid_t ptid)
|
target_continue_no_signal (ptid_t ptid)
|
||||||
{
|
{
|
||||||
target_resume (ptid, 0, GDB_SIGNAL_0);
|
target_resume (ptid, 0, GDB_SIGNAL_0);
|
||||||
}
|
}
|
||||||
|
@ -59,15 +59,17 @@ extern int target_read_uint32 (CORE_ADDR memaddr, uint32_t *result);
|
|||||||
extern int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
|
extern int target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr,
|
||||||
ssize_t len);
|
ssize_t len);
|
||||||
|
|
||||||
/* Make target stop in a continuable fashion. (For instance, under
|
/* Cause the target to stop in a continuable fashion--for instance,
|
||||||
Unix, this should act like SIGSTOP). This function must be
|
under Unix, this should act like SIGSTOP--and wait for the target
|
||||||
|
to be stopped before returning. This function must be provided by
|
||||||
|
the client. */
|
||||||
|
|
||||||
|
extern void target_stop_and_wait (ptid_t ptid);
|
||||||
|
|
||||||
|
/* Restart a target previously stopped by target_stop_and_wait.
|
||||||
|
No signal is delivered to the target. This function must be
|
||||||
provided by the client. */
|
provided by the client. */
|
||||||
|
|
||||||
extern void target_stop_ptid (ptid_t ptid);
|
extern void target_continue_no_signal (ptid_t ptid);
|
||||||
|
|
||||||
/* Restart a target that was previously stopped by target_stop_ptid.
|
|
||||||
This function must be provided by the client. */
|
|
||||||
|
|
||||||
extern void target_continue_ptid (ptid_t ptid);
|
|
||||||
|
|
||||||
#endif /* TARGET_COMMON_H */
|
#endif /* TARGET_COMMON_H */
|
||||||
|
Reference in New Issue
Block a user