]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Fix merge regression from external kdb to upstream kdb
authorJason Wessel <jason.wessel@windriver.com>
Thu, 22 Jul 2010 00:27:06 +0000 (19:27 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Thu, 22 Jul 2010 00:27:06 +0000 (19:27 -0500)
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>
kernel/debug/kdb/kdb_main.c

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