OSDN Git Service

Use ptid_t.tid to store thread ids instead of ptid_t.pid.
authorpalves <palves>
Mon, 8 Sep 2008 21:33:25 +0000 (21:33 +0000)
committerpalves <palves>
Mon, 8 Sep 2008 21:33:25 +0000 (21:33 +0000)
commit29031ee52f76973d07ef91c2842e791d1e916eff
tree6660f35bf12d15a551b7e8e4dda04673d75d7049
parentdb5092ed0406a44847e571084717f0c5127b36dd
Use ptid_t.tid to store thread ids instead of ptid_t.pid.

* gnu-nat.c (inf_validate_procs): If this is the first time we're
seeing a thread id, extend the main thread's ptid.  If we still
have pending execs, don't be verbose about new threads.
(gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
(gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
* i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
Adjust.
gdb/ChangeLog
gdb/gnu-nat.c
gdb/i386gnu-nat.c