Re: [0/6] kgdb light

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, Jason Wessel <jason.wessel@...>
Date: Sunday, February 10, 2008 - 9:25 am

Sam Ravnborg wrote:

This is a leftover from the old jmp-on-fault logic that was missed by
this tree. I have a patch under test that kills this (and further 150
LOC) from the core.


Is the patch below OK? I also added an "if KGB" to unbreak kgdb's
kconfig menu again and included two minor cleanups I posted yesterday.

Jan

PS: Ingo, kgdboc runtime re-configuration is broken as you dropped the
__init removal from uart_parse_options and uart_set_option (probably
due to the ifdef'ery). Better remove it unconditionally?

--------------

Refactor KGDB kbuild menu.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>

---
 arch/x86/Kconfig        |    4 +---
 drivers/serial/Makefile |    2 +-
 lib/Kconfig.kgdb        |   15 ++++++++++-----
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 85bcc23..5e0fab5 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -22,6 +22,7 @@ config X86
 	select HAVE_IDE
 	select HAVE_OPROFILE
 	select HAVE_KPROBES
+	select HAVE_ARCH_KGDB
 
 config GENERIC_LOCKBREAK
 	def_bool n
@@ -144,9 +145,6 @@ config AUDIT_ARCH
 config ARCH_SUPPORTS_AOUT
 	def_bool y
 
-config HAVE_ARCH_KGDB
-	def_bool y
-
 # Use the generic interrupt handling code in kernel/irq/:
 config GENERIC_HARDIRQS
 	bool
diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile
index 1d8ee05..dfd8e72 100644
--- a/drivers/serial/Makefile
+++ b/drivers/serial/Makefile
@@ -66,5 +66,5 @@ obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o
 obj-$(CONFIG_SERIAL_NETX) += netx-serial.o
 obj-$(CONFIG_SERIAL_OF_PLATFORM) += of_serial.o
 obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o
-obj-$(CONFIG_KGDBOC) += kgdboc.o
+obj-$(CONFIG_KGDB_IO_SERIAL_CONSOLE) += kgdboc.o
 obj-$(CONFIG_SERIAL_QE) += ucc_uart.o
diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb
index 00263c0..947c7f1 100644
--- a/lib/Kconfig.kgdb
+++ b/lib/Kconfig.kgdb
@@ -10,12 +10,16 @@ menuconfig KGDB
 	  at http://kgdb.sourceforge.net as well as in DocBook form
 	  in Documentation/DocBook/.  If unsure, say N.
 
+if KGDB
+
+config HAVE_ARCH_KGDB
+	bool
+
 config HAVE_ARCH_KGDB_SHADOW_INFO
 	bool
 
 config KGDB_CONSOLE_OUTPUT
-	bool "KGDB: Console messages through gdb"
-	depends on KGDB
+	bool "Console messages through gdb"
 	help
 	  If you say Y here, console messages will appear through gdb.
 	  Other consoles such as tty or ttyS will continue to work as usual.
@@ -26,12 +30,13 @@ config KGDB_CONSOLE_OUTPUT
 	  to use NETCONSOLE in conjunction with KGDBOE instead of
 	  KGDB_CONSOLE.
 
-config KGDBOC
-	tristate "KGDB: use kgdb over the serial console"
-	depends on KGDB
+config KGDB_IO_SERIAL_CONSOLE
+	tristate "Use kgdb over the serial console"
 	select CONSOLE_POLL
 	select MAGIC_SYSRQ
 	default y
 	help
 	  Share a serial console with kgdb. Sysrq-g must be used
 	  to break in initially.
+
+endif
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[0/6] kgdb light, Ingo Molnar, (Sun Feb 10, 3:13 am)
Re: [0/6] kgdb light, Sam Ravnborg, (Sun Feb 10, 6:47 am)
[git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 12:36 pm)
Re: [git pull] kgdb light, v5, Sam Ravnborg, (Sun Feb 10, 3:34 pm)
Re: [git pull] kgdb light, v5, Ray Lee, (Sun Feb 10, 1:30 pm)
Re: [git pull] kgdb light, v5, Jan Kiszka, (Sun Feb 10, 2:53 pm)
Re: [git pull] kgdb light, v5, Linus Torvalds, (Sun Feb 10, 3:44 pm)
Re: [git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 4:29 pm)
Re: [git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 4:41 pm)
Re: [git pull] kgdb light, v5, Jan Kiszka, (Sun Feb 10, 4:22 pm)
Re: [git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 5:13 pm)
Re: [git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 4:19 pm)
Re: [git pull] kgdb light, v5, Ingo Molnar, (Sun Feb 10, 3:34 pm)
Re: [git pull] kgdb light, v5, Jan Kiszka, (Sun Feb 10, 1:39 pm)
Re: [git pull] kgdb light, v5, Ray Lee, (Sun Feb 10, 2:59 pm)
Re: [0/6] kgdb light, Jan Kiszka, (Sun Feb 10, 9:25 am)
Re: [0/6] kgdb light, Sam Ravnborg, (Sun Feb 10, 3:31 pm)
Re: [0/6] kgdb light, Ingo Molnar, (Sun Feb 10, 5:16 pm)
Re: [0/6] kgdb light, Sam Ravnborg, (Sun Feb 10, 5:30 pm)
Re: [0/6] kgdb light, Ingo Molnar, (Sun Feb 10, 5:34 pm)
Re: [0/6] kgdb light, Jan Kiszka, (Sun Feb 10, 4:23 pm)
Re: [0/6] kgdb light, David Miller, (Sun Feb 10, 3:37 am)