Subject: CVS commit: src/sys/arch/mips/mips
To: None <source-changes@NetBSD.org>
From: Izumi Tsutsui <tsutsui@netbsd.org>
List: source-changes
Date: 05/29/2007 12:03:45
Module Name:	src
Committed By:	tsutsui
Date:		Tue May 29 12:03:45 UTC 2007

Modified Files:
	src/sys/arch/mips/mips: trap.c

Log Message:
Use the kernel symbol table to see the beginning of the current
subroutine to get more proper backtrace on ddb(4).

In the previous code it scans backwards from the current PC
for the end of the previous subroutine and checks "jr ra" or
"jr k0" instructions, but it often fails because gcc is
so aggressive nowadays as to reorder instruction blocks
to create efficient code path by branch predict etc. and
"jr ra" is not always located at the end of subroutines.

No objection on port-mips.


To generate a diff of this commit:
cvs rdiff -r1.211 -r1.212 src/sys/arch/mips/mips/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.