diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-05 21:07:46 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-05 21:07:46 +0000 |
commit | 2e7941949d5bab63696c842cb5fe3d96edba29fb (patch) | |
tree | 7582b76b9fd41ee0d59fe72764a801e2e8dd9bc5 /gdb/common | |
parent | 9f9f1f31e7b0df2da2fac6a8de06d9286f71f4d2 (diff) | |
download | gdb-2e7941949d5bab63696c842cb5fe3d96edba29fb.zip gdb-2e7941949d5bab63696c842cb5fe3d96edba29fb.tar.gz gdb-2e7941949d5bab63696c842cb5fe3d96edba29fb.tar.bz2 |
gdb/
Code cleanup.
* common/linux-osdata.c (linux_common_core_of_thread): New function
comment.
* linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
call by linux_common_core_of_thread.
(linux_nat_core_of_thread_1): Remove.
* linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
* linux-thread-db.c: Include linux-osdata.h.
(update_thread_core): Replace linux_nat_core_of_thread_1 call by
linux_common_core_of_thread.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/linux-osdata.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/common/linux-osdata.c b/gdb/common/linux-osdata.c index 4f97a22..ffb72b3 100644 --- a/gdb/common/linux-osdata.c +++ b/gdb/common/linux-osdata.c @@ -45,6 +45,8 @@ #include "gdb_assert.h" #include "gdb_dirent.h" +/* Compute and return the processor core of a given thread. */ + int linux_common_core_of_thread (ptid_t ptid) { |