Subject: [PATCH] [Hurd/gnu-nat.c] Use ptid_t.lwpid to store thread ids
authorPedro Alves <palves@redhat.com>
Wed, 18 Sep 2013 14:47:51 +0000 (14:47 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 18 Sep 2013 14:47:51 +0000 (14:47 +0000)
commitca08a94cf08890f7a3b3dd074d5b42a09ccd868e
tree33b0faa586bcd15a8433c3d280c280034df9b23e
parente4c6a2c42df650ad28efcb081244d41954d91353
Subject: [PATCH] [Hurd/gnu-nat.c] Use ptid_t.lwpid to store thread ids
 instead of ptid_t.tid.

In preparation for reusing gnu-nat.c in gdbserver, switch to storing
thread ids in the lwpid field of ptid_t rather than in the tid
field.  The Hurd's thread model is 1:1, so it doesn't feel wrong
anyway.

gdb/
2013-09-18  Pedro Alves  <palves@redhat.com>

* gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
(gnu_create_inferior)
(gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
(set_sig_thread_cmd): Use the lwpid field of ptids to
store/extract thread ids instead of the tid field.
* i386gnu-nat.c (gnu_fetch_registers): Adjust.
gdb/ChangeLog
gdb/gnu-nat.c
gdb/i386gnu-nat.c
This page took 0.025905 seconds and 4 git commands to generate.