---

 25-akpm/arch/i386/kernel/kgdb_stub.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

diff -puN arch/i386/kernel/kgdb_stub.c~kgdb-in-sched_functions arch/i386/kernel/kgdb_stub.c
--- 25/arch/i386/kernel/kgdb_stub.c~kgdb-in-sched_functions	2004-05-12 20:58:37.062397112 -0700
+++ 25-akpm/arch/i386/kernel/kgdb_stub.c	2004-05-12 20:58:37.067396352 -0700
@@ -564,8 +564,6 @@ gdb_regs_to_regs(int *gdb_regs, struct p
 #endif
 
 }				/* gdb_regs_to_regs */
-#define first_sched	scheduling_functions_start_here
-#define last_sched	scheduling_functions_end_here
 
 int thread_list = 0;
 
@@ -626,7 +624,7 @@ get_gdb_regs(struct task_struct *p, stru
 		gdb_regs[_PC] = *(unsigned long *) (gdb_regs[_EBP] + 4);
 		gdb_regs[_ESP] = gdb_regs[_EBP] + 8;
 		gdb_regs[_EBP] = *(unsigned long *) gdb_regs[_EBP];
-		if (gdb_regs[_PC] < first_sched || gdb_regs[_PC] >= last_sched)
+		if (!in_sched_functions(gdb_regs[_PC]))
 			return;
 	} while (count++ < 16);
 	return;

_
