If gdb is detached from the kernel on arm then it hangs. Though it can
attach again and can continue.
The problem occurred as in arm, pc is at same location where the
breakpoint occurred. And this breakpoint happens to be compiled
breakpoint (^C) one needs to increment the pc to next instruction.
This patch does this in kgdb_arch_handle_exception.


Signed off by: Girish Shilamkar <[EMAIL PROTECTED]>


Index: linux-2.6.15/arch/arm/kernel/kgdb.c
===================================================================
--- linux-2.6.15.orig/arch/arm/kernel/kgdb.c	2006-03-31 13:20:25.000000000 +0530
+++ linux-2.6.15/arch/arm/kernel/kgdb.c	2006-04-21 17:03:40.272616760 +0530
@@ -135,6 +135,8 @@
 
 	switch (remcom_in_buffer[0]) {
 	case 'c':
+	case 'D':
+        case 'k':
 		kgdb_contthread = NULL;
 
 		/*

Reply via email to