Re: [PATCH v2] gdb/remote: Remove negative tid/pid handling in wite_ptid

2019-11-06 Thread Pedro Alves
On 11/6/19 1:27 PM, Evgeniy Didin wrote: > Actually thread and process ID's are positive values. Accorting to > http://man7.org/linux/man-pages/man7/pthreads.7.html > threads are creating using "clone" syscall, so the ID generation mechanism > is similar for threads and processes. According to Linu

[PATCH v2] gdb/remote: Remove negative tid/pid handling in wite_ptid

2019-11-06 Thread Evgeniy Didin
Actually thread and process ID's are positive values. Accorting to http://man7.org/linux/man-pages/man7/pthreads.7.html threads are creating using "clone" syscall, so the ID generation mechanism is similar for threads and processes. According to Linux source code there is a function call tree, whic