[PATCH] fix KDB backtrace for ppc64

Keith Owens kaos at sgi.com
Fri May 7 17:50:36 EST 2004


On Fri, 7 May 2004 17:15:32 +1000,
Anton Blanchard <anton at samba.org> wrote:
>
>Hi Ananth,
>
>> Here is a patch that fixes backtracing in KDB for ppc64. We were not
>> handling the link register and were missing an intermediate call
>> during bt.
>
>Have you seen Pauls changes to arch/ppc64/kernel/process.c:show_stack in
>ameslab-2.5? It uses a trick to find exception frames and dump them
>correctly. I think it would be good to get the same magic into kdb.

No, but even without seeing the code, I can state that it will be arch
specific.  There is no way to find the exception frame in ia64 when
starting without registers, the unwind code requires the exception
frame just to get started.  It is better for the common code to detect
the condition of no registers and use KDB_ENTER() instead of a direct
call to kdb().


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





More information about the Linuxppc64-dev mailing list