Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/mips/mips




To: source-changes%NetBSD.org@localhost

Subject: CVS commit: src/sys/arch/mips/mips

From: Izumi Tsutsui <tsutsui%netbsd.org@localhost>

Date: Tue, 29 May 2007 12:03:45 +0000 (UTC)


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.






Prev by Date: CVS commit: src/sys/ufs/ffs

Next by Date: CVS commit: src/lib/libcurses

Previous by Thread: CVS commit: src/sys/ufs/ffs

Next by Thread: CVS commit: src/lib/libcurses

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index