aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorHui Zhu <hui@codesourcery.com>2014-02-27 14:30:07 +0000
committerPedro Alves <palves@redhat.com>2014-02-27 14:30:07 +0000
commit2ebd5a35208e40dab7df46c7d6d58f4d614c6e21 (patch)
tree81331bc1c9e20fec4702748467f12562f58e358a /gdb/infrun.c
parent5063daf7357ccdc2c9e899ca0421c2e8e580c88d (diff)
downloadfsf-binutils-gdb-2ebd5a35208e40dab7df46c7d6d58f4d614c6e21.zip
fsf-binutils-gdb-2ebd5a35208e40dab7df46c7d6d58f4d614c6e21.tar.gz
fsf-binutils-gdb-2ebd5a35208e40dab7df46c7d6d58f4d614c6e21.tar.bz2
Move ptid_match to common/ptid.c.
So that gdbserver can use it too. gdb/ 2014-02-27 Hui Zhu <hui@codesourcery.com> PR 12702 * infrun.c (ptid_match): Move ... * common/ptid.c (ptid_match): ... here. * inferior.h (ptid_match): Move ... * common/ptid.h (ptid_match): ... here.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 5d60a90..042d5fa 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -7092,20 +7092,6 @@ discard_infcall_control_state (struct infcall_control_state *inf_status)
xfree (inf_status);
}
-int
-ptid_match (ptid_t ptid, ptid_t filter)
-{
- if (ptid_equal (filter, minus_one_ptid))
- return 1;
- if (ptid_is_pid (filter)
- && ptid_get_pid (ptid) == ptid_get_pid (filter))
- return 1;
- else if (ptid_equal (ptid, filter))
- return 1;
-
- return 0;
-}
-
/* restore_inferior_ptid() will be used by the cleanup machinery
to restore the inferior_ptid value saved in a call to
save_inferior_ptid(). */