]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/gdb: fix lx-symbols 'gdb.error' while loading modules
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 24 Jul 2020 04:15:52 +0000 (21:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jul 2020 19:42:42 +0000 (12:42 -0700)
commit6e1909f68f8bd4a20193cbd3f743fcd0cf63adf2
treea7f5708b8b30eaaa0ea7fc0306f239888dd52891
parent8d82716c4becd7bdfa6f70e8ac8dccf079d361a1
scripts/gdb: fix lx-symbols 'gdb.error' while loading modules

Commit 78e6aec74989 ("module: Refactor section attr into bin attribute")
removed the 'name' field from 'struct module_sect_attr' triggering the
following error when invoking lx-symbols:

  (gdb) lx-symbols
  loading vmlinux
  scanning for modules in linux/build
  loading @0xffffffffc014f000: linux/build/drivers/net/tun.ko
  Python Exception <class 'gdb.error'> There is no member named name.:
  Error occurred in Python: There is no member named name.

This patch fixes the issue taking the module name from the 'struct
attribute'.

Fixes: 78e6aec74989 ("module: Refactor section attr into bin attribute")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Kieran Bingham <kbingham@kernel.org>
Link: http://lkml.kernel.org/r/20200722102239.313231-1-sgarzare@redhat.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/gdb/linux/symbols.py