diff options
author | Pedro Alves <pedro@codesourcery.com> | 2010-02-24 17:01:50 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2010-02-24 17:01:50 +0000 |
commit | b787cf42b1bd5f6ea342e602880a82ad9bcda7d7 (patch) | |
tree | ab29d7f402e2b879000d1b2a1f914fc210b24fd8 /gdb/linux-nat.c | |
parent | 2ce44621c197854d3eeeae52be5216136b8a414f (diff) | |
download | gdb-b787cf42b1bd5f6ea342e602880a82ad9bcda7d7.tar.gz |
* 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 e55d9586ed3..6a8a43792aa 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. |