scripts/gdb: use mem instead of core_layout to get the module address
authorPankaj Raghav <p.raghav@samsung.com>
Thu, 13 Apr 2023 21:00:55 +0000 (14:00 -0700)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 21:03:25 +0000 (14:03 -0700)
commitb4aff7513df323553de714dcf7b54e896577be1f
treeeef8656a69e45a7729df537278b652cf8dae09c9
parent560db7ccf96dda75592c6d2a604c1e296104fe7a
scripts/gdb: use mem instead of core_layout to get the module address

commit ac3b43283923 ("module: replace module_layout with module_memory")
changed the struct module data structure from module_layout to
module_memory. The core_layout member which is used while loading
modules are not available anymore leading to the following error while
running gdb:

(gdb) lx-symbols
loading vmlinux
Python Exception <class 'gdb.error'>: There is no member named core_layout.
Error occurred in Python: There is no member named core_layout.

Replace core_layout with its new counterpart mem[MOD_TEXT].

Fixes: ac3b43283923 ("module: replace module_layout with module_memory")
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
scripts/gdb/linux/constants.py.in
scripts/gdb/linux/modules.py
scripts/gdb/linux/symbols.py