aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kgdb.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2008-03-07 17:34:16 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 14:05:40 -0400
commit737a460f21febe551ff1d2299b63bae9b154078f (patch)
tree7a2d9440222c22446e283f6fbc959b4a44270989 /arch/x86/kernel/kgdb.c
parent84b5ae15216aa3ea0314f395536ef9829af21e14 (diff)
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>
Diffstat (limited to 'arch/x86/kernel/kgdb.c')
-rw-r--r--arch/x86/kernel/kgdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index 7d651adcb222..8c7e555f6d39 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -370,6 +370,8 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
370 ptr = &remcomInBuffer[1]; 370 ptr = &remcomInBuffer[1];
371 if (kgdb_hex2long(&ptr, &addr)) 371 if (kgdb_hex2long(&ptr, &addr))
372 linux_regs->ip = addr; 372 linux_regs->ip = addr;
373 case 'D':
374 case 'k':
373 newPC = linux_regs->ip; 375 newPC = linux_regs->ip;
374 376
375 /* clear the trace bit */ 377 /* clear the trace bit */
@@ -480,6 +482,8 @@ static int __kgdb_notify(struct die_args *args, unsigned long cmd)
480 if (kgdb_handle_exception(args->trapnr, args->signr, args->err, regs)) 482 if (kgdb_handle_exception(args->trapnr, args->signr, args->err, regs))
481 return NOTIFY_DONE; 483 return NOTIFY_DONE;
482 484
485 /* Must touch watchdog before return to normal operation */
486 touch_nmi_watchdog();
483 return NOTIFY_STOP; 487 return NOTIFY_STOP;
484} 488}
485 489