X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Ftarget.c;h=886e6cfb5c25e2787d5835d8d9dde11f350ba0d4;hb=a780ef4f27f8bc44082be81fdbee44bb11f1049c;hp=aff316da22ae2c5f594e089863e02ecf7ef5079f;hpb=e38504b39279fa86cbb2c4a45ab8ec34e3aef90b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index aff316da22..886e6cfb5c 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -314,13 +314,13 @@ target_pid_to_str (ptid_t ptid) { static char buf[80]; - if (ptid_equal (ptid, minus_one_ptid)) + if (ptid == minus_one_ptid) xsnprintf (buf, sizeof (buf), ""); - else if (ptid_equal (ptid, null_ptid)) + else if (ptid == null_ptid) xsnprintf (buf, sizeof (buf), ""); - else if (ptid_get_tid (ptid) != 0) + else if (ptid.tid () != 0) xsnprintf (buf, sizeof (buf), "Thread %d.0x%lx", - ptid.pid (), ptid_get_tid (ptid)); + ptid.pid (), ptid.tid ()); else if (ptid.lwp () != 0) xsnprintf (buf, sizeof (buf), "LWP %d.%ld", ptid.pid (), ptid.lwp ()); @@ -332,11 +332,11 @@ target_pid_to_str (ptid_t ptid) } int -kill_inferior (int pid) +kill_inferior (process_info *proc) { - gdb_agent_about_to_close (pid); + gdb_agent_about_to_close (proc->pid); - return (*the_target->kill) (pid); + return (*the_target->kill) (proc); } /* Target can do hardware single step. */