PERFORCE change 50301 for review

Marcel Moolenaar marcel at FreeBSD.org
Sat Apr 3 19:29:27 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=50301

Change 50301 by marcel at marcel_nfs on 2004/04/03 19:28:46

	Don't set td_last_frame before we enter the debugger when
	kdb_active is set. We would be clobbering the frame that
	the debugger is actually using.

Affected files ...

.. //depot/projects/gdb/sys/i386/i386/trap.c#8 edit

Differences ...

==== //depot/projects/gdb/sys/i386/i386/trap.c#8 (text+ko) ====

@@ -185,7 +185,6 @@
 
 	atomic_add_int(&cnt.v_trap, 1);
 	type = frame.tf_trapno;
-	td->td_last_frame = &frame;
 
 #ifdef KDB
 	if (kdb_active && type == T_PAGEFLT) {
@@ -194,6 +193,8 @@
 	}
 #endif
 
+	td->td_last_frame = &frame;
+
 	if ((frame.tf_eflags & PSL_I) == 0) {
 		/*
 		 * Buggy application or kernel code has disabled


More information about the p4-projects mailing list