aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/inferiors.h')
-rw-r--r--gdb/gdbserver/inferiors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/inferiors.h b/gdb/gdbserver/inferiors.h
index 8601b7e..9ea55df 100644
--- a/gdb/gdbserver/inferiors.h
+++ b/gdb/gdbserver/inferiors.h
@@ -72,6 +72,10 @@ struct process_info
struct process_info_private *private;
};
+#define ptid_of(inf) ((inf)->entry.id)
+#define pid_of(inf) ptid_get_pid ((inf)->entry.id)
+#define lwpid_of(inf) ptid_get_lwp ((inf)->entry.id)
+
/* Return a pointer to the process that corresponds to the current
thread (current_inferior). It is an error to call this if there is
no current thread selected. */