Jason Wessel d7161a6534 kgdb, x86, arm, mips, powerpc: ignore user space single stepping
On the x86 arch, user space single step exceptions should be ignored
if they occur in the kernel space, such as ptrace stepping through a
system call.

First check if it is kgdb that is executing a single step, then ensure
it is not an accidental traversal into the user space, while in kgdb,
any other time the TIF_SINGLESTEP is set, kgdb should ignore the
exception.

On x86, arm, mips and powerpc, the kgdb_contthread usage was
inconsistent with the way single stepping is implemented in the kgdb
core.  The arch specific stub should always set the
kgdb_cpu_doing_single_step correctly if it is single stepping.  This
allows kgdb to correctly process an instruction steps if ptrace
happens to be requesting an instruction step over a system call.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2008-09-26 10:36:41 -05:00
..
2008-07-03 16:58:10 +10:00
2008-07-03 16:58:10 +10:00
2007-05-11 05:38:25 -04:00
2008-05-09 20:22:58 +10:00
2008-06-30 22:31:00 +10:00
2008-03-07 08:42:28 -06:00
2008-05-23 22:43:11 +02:00
2008-08-04 13:18:17 +10:00
2008-07-26 12:00:04 -07:00
2008-06-30 22:31:11 +10:00
2008-07-01 11:28:47 +10:00
2007-10-11 14:36:47 +10:00
2008-07-16 11:07:59 +10:00
2008-08-04 13:18:17 +10:00