Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 04:37:45 +0000 (UTC)
From:      Neel Natu <neel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207645 - head/sys/mips/mips
Message-ID:  <201005050437.o454bj8G042732@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: neel
Date: Wed May  5 04:37:45 2010
New Revision: 207645
URL: http://svn.freebsd.org/changeset/base/207645

Log:
  Fix DDB backtrace involving kernel modules.
  
  We can no longer assume that all valid program counter values reside
  within the kernel object file.

Modified:
  head/sys/mips/mips/db_trace.c

Modified: head/sys/mips/mips/db_trace.c
==============================================================================
--- head/sys/mips/mips/db_trace.c	Wed May  5 03:45:46 2010	(r207644)
+++ head/sys/mips/mips/db_trace.c	Wed May  5 04:37:45 2010	(r207645)
@@ -181,7 +181,7 @@ loop:
 	}
 	/* 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005050437.o454bj8G042732>