Procházet zdrojové kódy

Fix merge regression from external kdb to upstream kdb

In the process of merging kdb to the mainline, the kdb lsmod command
stopped printing the base load address of kernel modules.  This is
needed for using kdb in conjunction with external tools such as gdb.

Simply restore the functionality by adding a kdb_printf for the base
load address of the kernel modules.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Jason Wessel před 15 roky
rodič
revize
9e8b624fca
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      kernel/debug/kdb/kdb_main.c

+ 1 - 0
kernel/debug/kdb/kdb_main.c

@@ -1883,6 +1883,7 @@ static int kdb_lsmod(int argc, const char **argv)
 			kdb_printf(" (Loading)");
 			kdb_printf(" (Loading)");
 		else
 		else
 			kdb_printf(" (Live)");
 			kdb_printf(" (Live)");
+		kdb_printf(" 0x%p", mod->module_core);
 
 
 #ifdef CONFIG_MODULE_UNLOAD
 #ifdef CONFIG_MODULE_UNLOAD
 		{
 		{