[PATCH] stop debugger recursion when multiple resets caught.

Olaf Hering olh at suse.de
Sun Apr 18 00:55:38 EST 2004


 On Fri, Apr 16, linas at austin.ibm.com wrote:

>
> Hi Anton,
>
> Please apply the following patch to Ameslab.  It fixes one of the
> most serious KDB problems at this time: incorrect handling of
> recursive calls into the debugger from unexpected exceptions.
>
> For example, hitting the little yellow button repeatedly is currently
> causing all sorts of havoc in KDB, as are some other, more bizarre
> circumstances.  This patch should fix these.
>
> --linas
>

> --- arch/ppc64/kdb/kdbasupport.c.orig	2004-04-16 16:15:17.000000000 -0500
> +++ arch/ppc64/kdb/kdbasupport.c	2004-04-16 17:11:56.000000000 -0500
> @@ -1789,7 +1789,7 @@ kdb_debugger(struct pt_regs *regs) {
>  	} else { /* regs invalid */
>  		kdb(KDB_REASON_SILENT,0,regs);
>  	}
> -	return 0;
> +	return 1;
>  }

Thanks Linas,

I have added this part.


--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list