---

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

diff -puN arch/x86_64/kernel/kgdb_stub.c~kgdb-in-sched_functions-x86_64 arch/x86_64/kernel/kgdb_stub.c
--- 25/arch/x86_64/kernel/kgdb_stub.c~kgdb-in-sched_functions-x86_64	2004-05-12 20:59:01.636661256 -0700
+++ 25-akpm/arch/x86_64/kernel/kgdb_stub.c	2004-05-12 20:59:01.641660496 -0700
@@ -667,9 +667,6 @@ gdb_regs_to_regs(unsigned long *gdb_regs
 #endif
 }				/* gdb_regs_to_regs */
 
-#define first_sched	scheduling_functions_start_here
-#define last_sched	scheduling_functions_end_here
-
 int thread_list = 0;
 extern void thread_return(void);
 
@@ -730,7 +727,7 @@ get_gdb_regs(struct task_struct *p, stru
 		rsp = (unsigned long *)rbp;
 		pc = rsp[1];
 
-		if (pc < first_sched || pc >= last_sched)
+		if (!in_sched_functions(pc))
 			break;
 		gdb_regs[_PC] = (unsigned long)pc;
 		gdb_regs[_RSP] = (unsigned long)rsp;

_
