[PATCH] i386: use thread_info flags for debug regs and IO bitmaps
[deliverable/linux.git] / arch / i386 / kernel / ptrace.c
index fd7eaf7866e0e118cd6852ade5122e4f6ef14051..d3db03f4085d75ef607acda75e020cf0c0f10ffe 100644 (file)
@@ -468,8 +468,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
                                  for(i=0; i<4; i++)
                                          if ((0x5f54 >> ((data >> (16 + 4*i)) & 0xf)) & 1)
                                                  goto out_tsk;
+                                 if (data)
+                                         set_tsk_thread_flag(child, TIF_DEBUG);
+                                 else
+                                         clear_tsk_thread_flag(child, TIF_DEBUG);
                          }
-
                          addr -= (long) &dummy->u_debugreg;
                          addr = addr >> 2;
                          child->thread.debugreg[addr] = data;
This page took 0.065326 seconds and 5 git commands to generate.