]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/debug/debug_core.c
kdb: Don't back trace on a cpu that didn't round up
[linux.git] / kernel / debug / debug_core.c
index 1fb8b239e56705629765fe868192424a68cc3496..5cc608de6883127e6925c6cc71ce7c89eb8b7f84 100644 (file)
@@ -592,6 +592,8 @@ static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs,
                                arch_kgdb_ops.correct_hw_break();
                        if (trace_on)
                                tracing_on();
+                       kgdb_info[cpu].debuggerinfo = NULL;
+                       kgdb_info[cpu].task = NULL;
                        kgdb_info[cpu].exception_state &=
                                ~(DCPU_WANT_MASTER | DCPU_IS_SLAVE);
                        kgdb_info[cpu].enter_kgdb--;
@@ -724,6 +726,8 @@ static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs,
        if (trace_on)
                tracing_on();
 
+       kgdb_info[cpu].debuggerinfo = NULL;
+       kgdb_info[cpu].task = NULL;
        kgdb_info[cpu].exception_state &=
                ~(DCPU_WANT_MASTER | DCPU_IS_SLAVE);
        kgdb_info[cpu].enter_kgdb--;