From 2e7941949d5bab63696c842cb5fe3d96edba29fb Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 5 Mar 2012 21:07:46 +0000 Subject: 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. --- gdb/common/linux-osdata.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/common/linux-osdata.c') 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) { -- cgit v1.1