]> err.no Git - linux-2.6/commit
kgdb: fix several kgdb regressions
authorJason Wessel <jason.wessel@windriver.com>
Fri, 7 Mar 2008 22:34:16 +0000 (16:34 -0600)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 18:05:40 +0000 (20:05 +0200)
commit737a460f21febe551ff1d2299b63bae9b154078f
tree7a2d9440222c22446e283f6fbc959b4a44270989
parent84b5ae15216aa3ea0314f395536ef9829af21e14
kgdb: fix several kgdb regressions

kgdb core fixes:
- Check to see that mm->mmap_cache is not null before calling
  flush_cache_range(), else on arch=ARM it will cause a fatal
  fault.

- Breakpoints should only be restored if they are in the BP_ACTIVE
  state.

- Fix a typo in comments to "kgdb_register_io_module"

x86 kgdb fixes:
- Fix the x86 arch handler such that on a kill or detach that the
  appropriate cleanup on the single stepping flags gets run.

- Add in the DIE_NMIWATCHDOG call for x86_64

- Touch the nmi watchdog before returning the system to normal
  operation after performing any kind of kgdb operation, else
  the possibility exists to trigger the watchdog.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/kgdb.c
arch/x86/kernel/traps_64.c
kernel/kgdb.c