summaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.h
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>2000-02-01 03:19:29 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>2000-02-01 03:19:29 +0000
commitad3106c7356724dbf6c26594916e1fd0c88120ec (patch)
treeb406604171b1753986343da333d6bdce47139fa7 /gdb/gnu-nat.h
parent71cf70deba13c380ea38eaa3f88dad258d1ba76e (diff)
downloadgdb-ad3106c7356724dbf6c26594916e1fd0c88120ec.tar.gz
import gdb-2000-01-31 snapshot
Diffstat (limited to 'gdb/gnu-nat.h')
-rw-r--r--gdb/gnu-nat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h
index 8cc6c122e21..f2f0f024877 100644
--- a/gdb/gnu-nat.h
+++ b/gdb/gnu-nat.h
@@ -31,6 +31,9 @@ extern struct inf *current_inferior;
/* Converts a GDB pid to a struct proc. */
struct proc *inf_tid_to_thread (struct inf *inf, int tid);
+/* Makes sure that INF's thread list is synced with the actual process. */
+int inf_update_procs (struct inf *inf);
+
/* A proc is either a thread, or the task (there can only be one task proc
because it always has the same TID, PROC_TID_TASK). */
struct proc
@@ -75,8 +78,15 @@ struct proc
extern int __proc_pid (struct proc *proc);
+/* Make sure that the state field in PROC is up to date, and return a
+ pointer to it, or 0 if something is wrong. If WILL_MODIFY is true,
+ makes sure that the thread is stopped and aborted first, and sets
+ the state_changed field in PROC to true. */
extern thread_state_t proc_get_state (struct proc *proc, int will_modify);
+/* Return printable description of proc. */
+extern char *proc_string (struct proc *proc);
+
#define proc_debug(_proc, msg, args...) \
do { struct proc *__proc = (_proc); \
debug ("{proc %d/%d %p}: " msg, \