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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to