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/linux-thread-db.c | |
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/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index ea34bf4..4d09c6e 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -40,6 +40,7 @@ #include "observer.h" #include "linux-nat.h" #include "linux-procfs.h" +#include "linux-osdata.h" #include <signal.h> @@ -1603,7 +1604,7 @@ thread_db_find_new_threads_1 (ptid_t ptid) static int update_thread_core (struct lwp_info *info, void *closure) { - info->core = linux_nat_core_of_thread_1 (info->ptid); + info->core = linux_common_core_of_thread (info->ptid); return 0; } |