summaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-03-05 21:07:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-03-05 21:07:46 +0000
commit6eea6d8513cb9b44099f5c134fcec16e3b69e601 (patch)
treeaed473f1b85a3294035dfe0125f6c579d44b4942 /gdb/linux-thread-db.c
parent925e936bfb1aac0ef9167d0e4e77633c476f28ed (diff)
downloadgdb-6eea6d8513cb9b44099f5c134fcec16e3b69e601.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index ea34bf4fd7b..4d09c6e3ba2 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;
}