Fix DDB backtrace involving kernel modules.

We can no longer assume that all valid program counter values reside
within the kernel object file.
This commit is contained in:
Neel Natu 2010-05-05 04:37:45 +00:00
parent e3ef0d2fcf
commit 7ee44a58d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207645

View File

@ -181,7 +181,7 @@ stacktrace_subr(register_t pc, register_t sp, register_t ra,
}
/* check for bad PC */
/*XXX MIPS64 bad: These hard coded constants are lame */
if (pc & 3 || pc < (uintptr_t)0x80000000 || pc >= (uintptr_t)edata) {
if (pc & 3 || pc < (uintptr_t)0x80000000) {
(*printfn) ("PC 0x%x: not in kernel\n", pc);
ra = 0;
goto done;