aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-02-24 17:01:58 +0000
committerPedro Alves <palves@redhat.com>2010-02-24 17:01:58 +0000
commit0723dbf578cc2f8ab942f4bbd36e1377adcd0620 (patch)
tree312b86861e6378fff025e8b3e4030d693a4efbb0 /gdb/inferior.h
parent09de9781bdd949cdd00adec6e0693a0d79d70463 (diff)
downloadgdb-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/inferior.h')
-rw-r--r--gdb/inferior.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 4571893..bd6f1c8 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -105,6 +105,16 @@ extern int ptid_equal (ptid_t p1, ptid_t p2);
/* Return true if PTID represents a process id. */
extern int ptid_is_pid (ptid_t ptid);
+/* 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 and
+ threads of that given process match, lwps and threads of other
+ processes do not; or, it can represent a specific thread, in which
+ case, only that thread will match true. PTID must represent a
+ specific LWP or THREAD, it can never be a wild card. */
+
+extern int ptid_match (ptid_t ptid, ptid_t filter);
+
/* Save value of inferior_ptid so that it may be restored by
a later call to do_cleanups(). Returns the struct cleanup
pointer needed for later doing the cleanup. */