aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2000-02-01 03:19:29 +0000
committerJason Molenda <jmolenda@apple.com>2000-02-01 03:19:29 +0000
commitda59e08184255e09e51e54bb356e4448d33b2245 (patch)
tree7b31845d077b659d43f8a6597270e121c75f77e4 /gdb/gnu-nat.h
parent557537a5563f40d36fb91d03551da70f4b0faf34 (diff)
downloadgdb-da59e08184255e09e51e54bb356e4448d33b2245.zip
gdb-da59e08184255e09e51e54bb356e4448d33b2245.tar.gz
gdb-da59e08184255e09e51e54bb356e4448d33b2245.tar.bz2
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 8cc6c12..f2f0f02 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, \