aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobert Obermeier <obbi89@gmail.com>2012-12-15 23:59:36 -0500
committerJason Wessel <jason.wessel@windriver.com>2013-03-02 09:52:18 -0500
commit3b0eb71ec9e22c6735c84f800d6523c96839efe6 (patch)
tree645a97a4242eab936ba5f7b4d9dccfda9bd6f346 /lib
parent00370b8f8dd6e3171b8202f9c5187a5f73e99497 (diff)
Fixed dead ifdef block by adding missing Kconfig option.
Added missing Kconfig option KDB_CONTINUE_CATASTROPHIC which lead to a dead ifdef block in kernel/debug/kdb/kdb_main.c:73-75. The code using KDB_CONTINUE_CATASTROPHIC was originally introduced in commit '5d5314d6795f3c1c0f415348ff8c51f7de042b77' by Jason Wessel. This patchset ("kdb: core for kgdb back end (1 of 2)") added platform independent part of kdb to the linux kernel. The Kernel option however, even though it had the same options and behaviour on all supported architectures, was part of the x86 and ia64 patchset of KDB and therefore not pulled into the mainline kernel tree. I actually took the originally written Kconfig by Keith Owens <kaos@sgi.com> (2003-06-20 according to KDB changelog) and changed it to reflect the correct behaviour, as the KDUMP patchset is not part of the kernel and the expected functionality is missing from it. Signed-off-by: Robert Obermeier <obbi89@googlemail.com> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.kgdb18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb
index 43cb93fa2651..960fa2ecd6e0 100644
--- a/lib/Kconfig.kgdb
+++ b/lib/Kconfig.kgdb
@@ -79,4 +79,22 @@ config KDB_KEYBOARD
79 help 79 help
80 KDB can use a PS/2 type keyboard for an input device 80 KDB can use a PS/2 type keyboard for an input device
81 81
82config KDB_CONTINUE_CATASTROPHIC
83 int "KDB: continue after catastrophic errors"
84 depends on KGDB_KDB
85 default "0"
86 help
87 This integer controls the behaviour of kdb when the kernel gets a
88 catastrophic error, i.e. for a panic or oops.
89 When KDB is active and a catastrophic error occurs, nothing extra
90 will happen until you type 'go'.
91 CONFIG_KDB_CONTINUE_CATASTROPHIC == 0 (default). The first time
92 you type 'go', you will be warned by kdb. The secend time you type
93 'go', KDB tries to continue. No guarantees that the
94 kernel is still usable in this situation.
95 CONFIG_KDB_CONTINUE_CATASTROPHIC == 1. KDB tries to continue.
96 No guarantees that the kernel is still usable in this situation.
97 CONFIG_KDB_CONTINUE_CATASTROPHIC == 2. KDB forces a reboot.
98 If you are not sure, say 0.
99
82endif # KGDB 100endif # KGDB