diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-24 17:01:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-24 17:01:58 +0000 |
commit | 0723dbf578cc2f8ab942f4bbd36e1377adcd0620 (patch) | |
tree | 312b86861e6378fff025e8b3e4030d693a4efbb0 /gdb/linux-nat.c | |
parent | 09de9781bdd949cdd00adec6e0693a0d79d70463 (diff) | |
download | gdb-0723dbf578cc2f8ab942f4bbd36e1377adcd0620.zip gdb-0723dbf578cc2f8ab942f4bbd36e1377adcd0620.tar.gz gdb-0723dbf578cc2f8ab942f4bbd36e1377adcd0620.tar.bz2 |
* inferior.h (ptid_match): Declare.
* infrun.c (ptid_match): New.
* remote.c (queued_stop_reply): Rewrite and use ptid_match.
(handle_notification): Add debug output.
* linux-nat.c (ptid_match): Delete.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index e55d958..6a8a437 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1221,33 +1221,6 @@ find_lwp_pid (ptid_t ptid) return NULL; } -/* Returns true if PTID matches filter FILTER. FILTER can be the wild - card MINUS_ONE_PTID (all ptid match it); can be a ptid representing - a process (ptid_is_pid returns true), in which case, all lwps of - that give process match, lwps of other process do not; or, it can - represent a specific thread, in which case, only that thread will - match true. PTID must represent an LWP, it can never be a wild - card. */ - -static int -ptid_match (ptid_t ptid, ptid_t filter) -{ - /* Since both parameters have the same type, prevent easy mistakes - from happening. */ - gdb_assert (!ptid_equal (ptid, minus_one_ptid) - && !ptid_equal (ptid, null_ptid)); - - 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; -} - /* Call CALLBACK with its second argument set to DATA for every LWP in the list. If CALLBACK returns 1 for a particular LWP, return a pointer to the structure describing that LWP immediately. |