On Thu, 31 Aug 2006 18:46:51 +0400
"Vitaly Wool" <[EMAIL PROTECTED]> wrote:

> Hello folks,
> 
> I've come across the following problem on my PowerPC target (Sandpoint).
> When I set a breakpoint via kgdb to sys_sync() it survives only the
> first call. I. e. I can continue debugging session, but when sys_sync
> is called the second time, no break occurs and the target seems ti be
> hanging silently.

Seems like the patch inlined below is fixing the problem described, though I'm 
not sure if that's the right way to go...

Vitaly

Index: powerpc.git/arch/powerpc/mm/fault.c
===================================================================
--- powerpc.git.orig/arch/powerpc/mm/fault.c
+++ powerpc.git/arch/powerpc/mm/fault.c
@@ -175,6 +176,13 @@ int __kprobes do_page_fault(struct pt_re
        is_write = error_code & ESR_DST;
 #endif /* CONFIG_4xx || CONFIG_BOOKE */
 
+#ifdef CONFIG_KGDB
+       if (atomic_read(&debugger_active) && kgdb_may_fault)
+               /* Restore our previous state. */
+               kgdb_fault_longjmp(kgdb_fault_jmp_regs);
+               /* Not reached. */
+#endif
+
        if (notify_page_fault(DIE_PAGE_FAULT, "page_fault", regs, error_code,
                                11, SIGSEGV) == NOTIFY_STOP)
                return 0;


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to