public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fixed broken x86_64
@ 2004-03-04 14:36 Amit S. Kale
  0 siblings, 0 replies; only message in thread
From: Amit S. Kale @ 2004-03-04 14:36 UTC (permalink / raw)
  To: Linux Kernel, KGDB bugreports, Tom Rini

Hi,

I am attempting to fix broken x86_64: kgdb_connected is zero when kgdb 
connects to gdb. This comes through a debug exception.

I am checking in this patch to fix it for uniprocessor systems. I still have 
to think about smp system.
-Amit

@@ -556,13 +566,15 @@
 +{
 +        struct die_args *d = ptr;
 +
-+        if (!kgdb_connected || (cmd == DIE_DEBUG && user_mode(d->regs)))
++        if (cmd == DIE_DEBUG && user_mode(d->regs))
 +                return NOTIFY_DONE;
 +        if (cmd == DIE_NMI_IPI) {
-+                if (atomic_read(debugger_active))
++                if (atomic_read(&debugger_active))
 +                        return NOTIFY_BAD;
-+        } else if ((*linux_debug_hook)(d->trapnr, d->signr, d->err, 
d->regs))
-+                return NOTIFY_BAD; /* skip */
++        } else {
++              CHK_DEBUGGER(d->trapnr, d->signr, d->err, d->regs,);
++              return NOTIFY_BAD;
++      }
 +
 +        return NOTIFY_DONE;
 +}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-04 14:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-04 14:36 Fixed broken x86_64 Amit S. Kale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox