PERFORCE change 207103 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Feb 29 19:56:00 UTC 2012


http://p4web.freebsd.org/@@207103?ac=10

Change 207103 by gonzo at gonzo_thinkpad on 2012/02/29 19:55:09

	- Increase possible function size
	       - Stop backtrace when RA is equal PC

Affected files ...

.. //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/dtrace_isa.c#5 edit

Differences ...

==== //depot/projects/dtrace-mips/sys/cddl/dev/dtrace/mips/dtrace_isa.c#5 (text+ko) ====

@@ -50,7 +50,11 @@
 
 #include "regset.h"
 
-#define	MAX_FUNCTION_SIZE 0x1000
+/*
+ * Wee need some reasonable default to prevent backtrace code
+ * from wandering too far
+ */
+#define	MAX_FUNCTION_SIZE 0x10000
 #define	MAX_PROLOGUE_SIZE 0x100
 
 int next_frame(register_t *pc, register_t *sp,
@@ -246,6 +250,12 @@
 			}
 		}
 
+		/*
+		 * We reached the end of backtrace
+		 */
+		if (pc == ra)
+			break;
+
 		pc = ra;
 		sp += stksize;
 


More information about the p4-projects mailing list