aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-11-09 02:58:50 +0000
committerYao Qi <yao@codesourcery.com>2012-11-09 02:58:50 +0000
commitfbd5db48c538738520ee7b9a0699499b56bc9411 (patch)
treed4aeba3bd6d20daf24d5b83a2cce5038286495aa /gdb/gdbserver/server.c
parente714f336ee88378b0598be6ba077fe77c1d218bc (diff)
downloadgdb-fbd5db48c538738520ee7b9a0699499b56bc9411.zip
gdb-fbd5db48c538738520ee7b9a0699499b56bc9411.tar.gz
gdb-fbd5db48c538738520ee7b9a0699499b56bc9411.tar.bz2
gdb/gdbserver:
2012-11-09 Yao Qi <yao@codesourcery.com> * spu-low.c (current_ptid): Move it to .. * gdbthread.h: ... here. New. * remote-utils.c (read_ptid): Use macro 'current_ptid'. * server.c (myresume, process_serial_event): Likewise. * thread-db.c (thread_db_find_new_threads): Likewise. * tracepoint.c (run_inferior_command): Likewise.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r--gdb/gdbserver/server.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 61a7313..c611b7d 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -2283,8 +2283,7 @@ myresume (char *own_buf, int step, int sig)
if (step || sig || valid_cont_thread)
{
- resume_info[0].thread
- = ((struct inferior_list_entry *) current_inferior)->id;
+ resume_info[0].thread = current_ptid;
if (step)
resume_info[0].kind = resume_step;
else
@@ -3006,8 +3005,7 @@ process_serial_event (void)
pid = strtol (&own_buf[i], NULL, 16);
}
else
- pid =
- ptid_get_pid (((struct inferior_list_entry *) current_inferior)->id);
+ pid = ptid_get_pid (current_ptid);
if ((tracing && disconnected_tracing) || any_persistent_commands ())
{