PERFORCE change 50300 for review

Marcel Moolenaar marcel at FreeBSD.org
Sat Apr 3 19:17:12 PST 2004


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

Change 50300 by marcel at marcel_nfs on 2004/04/03 19:16:20

	Set curthread->td_last_frame.

Affected files ...

.. //depot/projects/gdb/sys/alpha/alpha/interrupt.c#5 edit
.. //depot/projects/gdb/sys/alpha/alpha/trap.c#4 edit

Differences ...

==== //depot/projects/gdb/sys/alpha/alpha/interrupt.c#5 (text+ko) ====

@@ -109,6 +109,8 @@
 	intr_restore(s);
 #endif
 	atomic_add_int(&td->td_intr_nesting_level, 1);
+	td->td_last_frame = framep;
+
 #if KSTACK_GUARD_PAGES == 0
 #ifndef SMP
 	{

==== //depot/projects/gdb/sys/alpha/alpha/trap.c#4 (text+ko) ====

@@ -283,6 +283,13 @@
 #endif
 	p = td->td_proc;
 
+	if (kdb_active && entry == ALPHA_KENTRY_MM) {
+		kdb_trap(entry, a0, framep);
+		return;
+	}
+
+	td->td_last_frame = framep;
+
 	/*
 	GIANT_REQUIRED;
 	 * Giant hasn't been acquired yet.
@@ -653,6 +660,7 @@
 
 	cnt.v_syscall++;
 	td->td_frame = framep;
+	td->td_last_frame = framep;
 	opc = framep->tf_regs[FRAME_PC] - 4;
 	sticks = td->td_sticks;
 	if (td->td_ucred != p->p_ucred)


More information about the p4-projects mailing list