From owner-p4-projects@FreeBSD.ORG Sun Aug 22 00:24:31 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C293616A4D0; Sun, 22 Aug 2004 00:24:30 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9981E16A4CE for ; Sun, 22 Aug 2004 00:24:30 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DC1C43D3F for ; Sun, 22 Aug 2004 00:24:30 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7M0OUc9098059 for ; Sun, 22 Aug 2004 00:24:30 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7M0OUv8098056 for perforce@freebsd.org; Sun, 22 Aug 2004 00:24:30 GMT (envelope-from davidxu@freebsd.org) Date: Sun, 22 Aug 2004 00:24:30 GMT Message-Id: <200408220024.i7M0OUv8098056@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 60231 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2004 00:24:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=60231 Change 60231 by davidxu@davidxu_alona on 2004/08/22 00:24:22 More cosmetic changes. Affected files ... .. //depot/projects/davidxu_ksedbg/src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c#26 edit Differences ... ==== //depot/projects/davidxu_ksedbg/src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c#26 (text+ko) ==== @@ -19,14 +19,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "defs.h" +#include +#include +#include -#include "gdb_assert.h" #include "proc_service.h" #include "thread_db.h" +#include "defs.h" #include "bfd.h" #include "elf-bfd.h" +#include "gdb_assert.h" #include "gdbcore.h" #include "gdbthread.h" #include "inferior.h" @@ -38,8 +41,6 @@ #include "gdbcmd.h" #include "solib-svr4.h" -#include -#include #define LIBTHREAD_DB_SO "libthread_db.so" @@ -56,7 +57,7 @@ static struct target_ops fbsd_thread_ops; static struct target_ops fbsd_core_ops; -/* Saved copy of orignal core_ops */ +/* Saved copy of orignal core_ops. */ static struct target_ops orig_core_ops; extern struct target_ops core_ops; @@ -69,6 +70,7 @@ /* Non-zero if we're using this module's target vector. */ static int fbsd_thread_active; +/* Non-zero if core_open is called */ static int fbsd_thread_core = 0; /* Non-zero if we have to keep this module's target vector active @@ -458,14 +460,6 @@ int resume_all, ret; long lwp, thvalid = 0; -#if 0 - printf_filtered("%s ptid=%ld.%ld.%ld step=%d\n", __func__, - GET_PID(ptid), GET_LWP(ptid), GET_THREAD(ptid), step); - printf_filtered("%s inferior_ptid=%ld.%ld.%ld\n", __func__, - GET_PID(inferior_ptid), GET_LWP(inferior_ptid), - GET_THREAD(inferior_ptid)); -#endif - if (!fbsd_thread_active) { child_ops.to_resume (ptid, step, signo);