Re: [1/2] PATCH Kernel watchpoint interface-2.6.9-rc4-mm1

From: Keith Owens
Date: Mon Oct 18 2004 - 04:24:43 EST


On Mon, 18 Oct 2004 14:15:25 +0530,
Prasanna S Panchamukhi <prasanna@xxxxxxxxxx> wrote:
>This patch provides global debug register settings.
>Used by kernel watchpoint interface patch.

>+config DEBUGREG
>+ bool "Global Debug Registers"
>+ depends on DEBUG_KERNEL
>+ help
>+ Global debug register settings will be honoured if this is turned on.
>+ If in doubt, say "N".
>+

I like most of the patch, but Kconfig is wrong. This option should not
be exposed to end users, instead CONFIG_DEBUGREG should be selected by
the debug code that calls debugreg. IOW, kgdb, kdb or kwatch select
debugreg, not the other way around.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/