diff options
author | Pedro Alves <palves@redhat.com> | 2014-02-19 18:25:41 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-02-19 18:27:01 +0000 |
commit | c658158d936f25dca30cc89260168a5c0be3a24c (patch) | |
tree | e93ba46b88dcd3301efe3c6e31d0076dfb616537 /gdb/common | |
parent | ba3481708d3f18e77ab6c000385b131c76d2733e (diff) | |
download | gdb-c658158d936f25dca30cc89260168a5c0be3a24c.zip gdb-c658158d936f25dca30cc89260168a5c0be3a24c.tar.gz gdb-c658158d936f25dca30cc89260168a5c0be3a24c.tar.bz2 |
common/ptid.h: Mention that process_stratum targets should prefer ptid.lwp.
It's best that we standardize on process_stratum targets using the
ptid.lwp field to store thread ids. The idea being leave the ptid.tid
field free for any thread_stratum target that might want to sit on
top. This patch adds a comment in that direction to struct ptid's
definition.
gdb/
2014-02-19 Pedro Alves <palves@redhat.com>
* common/ptid.h (struct ptid): Mention that process_stratum
targets should prefer ptid.lwp.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/ptid.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/common/ptid.h b/gdb/common/ptid.h index 362882d..cc1825e 100644 --- a/gdb/common/ptid.h +++ b/gdb/common/ptid.h @@ -25,7 +25,12 @@ consists of the process id (pid), lightweight process id (lwp) and thread id (tid). When manipulating ptids, the constructors, accessors, and predicates declared in this file should be used. Do - NOT access the struct ptid members directly. */ + NOT access the struct ptid members directly. + + process_stratum targets that handle threading themselves should + prefer using the ptid.lwp field, leaving the ptid.tid field for any + thread_stratum target that might want to sit on top. +*/ struct ptid { |