[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1316677848-10193-1-git-send-email-libfetion@gmail.com>
Date: Thu, 22 Sep 2011 15:50:48 +0800
From: libfetion@...il.com
To: jason.wessel@...driver.com, tim.bird@...sony.com
Cc: linux-kernel@...r.kernel.org, kgdb-bugreport@...ts.sourceforge.net,
Dongdong Deng <libfetion@...il.com>
Subject: [PATCH] debug_core: Add warn message for CONFIG_DEBUG_RODATA enable
From: Dongdong Deng <libfetion@...il.com>
The CONFIG_DEBUG_RODATA will limit KGDB/KDB's set breakpoint function,
and CONFIG_DEBUG_RODATA and CONFIG_KGDB could survive together.
Thus most of new user of KGDB/KDB get the set_breakpoint problem
caused by CONFIG_DEBUG_RODATA, and them have to send mail to
kgdb/kdb's mail-list for help.
This patch just adds an extra printk message to warn above case,
in order to provide some useful diagnostics to kgdb/kdb user.
Signed-off-by: Dongdong Deng <libfetion@...il.com>
---
kernel/debug/debug_core.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index bad6786..c2d98c1 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -899,6 +899,11 @@ int kgdb_register_io_module(struct kgdb_io *new_dbg_io_ops)
if (kgdb_break_asap)
kgdb_initial_breakpoint();
+#ifdef CONFIG_DEBUG_RODATA
+ printk(KERN_WARNING "kgdb: May need to disable CONFIG_DEBUG_RODATA"
+ " in order to set breakpoints.\n");
+#endif
+
return 0;
}
EXPORT_SYMBOL_GPL(kgdb_register_io_module);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists