Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
[linux-2.6-microblaze.git] / lib / Kconfig.kgdb
index 933680b..ffa7a76 100644 (file)
@@ -124,4 +124,22 @@ config KDB_CONTINUE_CATASTROPHIC
          CONFIG_KDB_CONTINUE_CATASTROPHIC == 2. KDB forces a reboot.
          If you are not sure, say 0.
 
+config ARCH_HAS_EARLY_DEBUG
+       bool
+       default n
+       help
+         If an architecture can definitely handle entering the debugger
+         when early_param's are parsed then it select this config.
+         Otherwise, if "kgdbwait" is passed on the kernel command line it
+         won't actually be processed until dbg_late_init() just after the
+         call to kgdb_arch_late() is made.
+
+         NOTE: Even if this isn't selected by an architecture we will
+         still try to register kgdb to handle breakpoints and crashes
+         when early_param's are parsed, we just won't act on the
+         "kgdbwait" parameter until dbg_late_init().  If you get a
+         crash and try to drop into kgdb somewhere between these two
+         places you might or might not end up being able to use kgdb
+         depending on exactly how far along the architecture has initted.
+
 endif # KGDB