gdbsupport: add type definitions for pid, lwp and tid
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 23 Sep 2022 15:55:32 +0000 (11:55 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Feb 2023 15:02:34 +0000 (10:02 -0500)
commit7b065306be39502cd2e6b60696280ac720c67e66
treee93a12e6bc8620f3f1e4368c53478437abba31c8
parentb82d4ec99e3347b62a16cf5456628a37a128a99b
gdbsupport: add type definitions for pid, lwp and tid

A following patch will want to declare variables of the same type as
some ptid_t components.  To make that easy (and avoid harcoding those
types everywhere), define some type definitions in the ptid_t struct for
each of them.  Use them throughout ptid.h.

I initially used pid_t, lwp_t and tid_t, but there is the risk of some
system defining the pid_t type using a macro instead of a typedef, which
would break things.  So, use the _type suffix instead.

Change-Id: I820b0bea9dafcb4914f1c9ba4bb96b5c666c8dec
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdbsupport/ptid.h