PERFORCE change 74779 for review

David Xu davidxu at FreeBSD.org
Fri Apr 8 20:21:33 PDT 2005


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

Change 74779 by davidxu at davidxu_tiger on 2005/04/09 03:21:09

	Use thread id to check event.

Affected files ...

.. //depot/projects/davidxu_thread/src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c#7 edit

Differences ...

==== //depot/projects/davidxu_thread/src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c#7 (text+ko) ====

@@ -681,7 +681,6 @@
   stop_pc = read_pc_pid (ptid) - DECR_PC_AFTER_BREAK;
   if (stop_pc != td_create_bp_addr && stop_pc != td_death_bp_addr)
     return;
-
   loop = 1;
 
   do
@@ -691,7 +690,8 @@
         {
 	  if (err == TD_NOMSG)
 	    return;
-          error ("Cannot get thread event message: %s", thread_db_err_str (err));
+          error ("Cannot get thread event message: %s",
+		 thread_db_err_str (err));
         }
       err = td_thr_get_info_p (msg.th_p, &ti);
       if (err != TD_OK)
@@ -729,10 +729,9 @@
   if (GET_PID(ret) >= 0 && ourstatus->kind == TARGET_WAITKIND_STOPPED)
     {
       lwp = get_current_lwp (GET_PID(ret));
-      ret = BUILD_LWP(lwp, GET_PID(ret));
+      ret = thread_from_lwp (BUILD_LWP(lwp, GET_PID(ret)));
       if (ourstatus->value.sig == TARGET_SIGNAL_TRAP)
         check_event(ret);
-      ret = thread_from_lwp (ret);
 #if 0
       if (!in_thread_list (ret))
         add_thread (ret);


More information about the p4-projects mailing list