[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9954a532-871a-e747-908f-bc5a3e32a55f@gmail.com>
Date: Wed, 12 Apr 2023 10:52:50 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Pankaj Raghav <p.raghav@...sung.com>, jan.kiszka@...mens.com,
kbingham@...nel.org
Cc: gost.dev@...sung.com, linux-kernel@...r.kernel.org,
song@...nel.org, mcgrof@...nel.org
Subject: Re: [PATCH] scripts/gdb: use mem instead of core_layout to get the
module address
On 4/12/23 04:26, Pankaj Raghav wrote:
> On 2023-04-12 13:15, Pankaj Raghav wrote:
>> 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@...sung.com>
>> ---
>
> I had one question:
> - Is there a way to import enum? I currently hard code 0 but it will better if we can
> use the MOD_TEXT enum instead.
You should be able to with updating constants.py.in and using LX_GDBPARSED()
--
Florian
Powered by blists - more mailing lists