PERFORCE change 60231 for review

David Xu davidxu at FreeBSD.org
Sat Aug 21 17:24:31 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=60231

Change 60231 by davidxu at 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 <dlfcn.h>
+#include <sys/types.h>
+#include <sys/ptrace.h>
 
-#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 <dlfcn.h>
-#include <sys/ptrace.h>
 
 #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);


More information about the p4-projects mailing list