[UNSTABLE][PATCH v2] UBUNTU: [Packaging] Build and include GDB Python scripts into debug packages

Matthias Klose doko at ubuntu.com
Tue May 18 10:53:58 UTC 2021


On 5/18/21 12:51 PM, Krzysztof Kozlowski wrote:
> On 17/05/2021 15:37, Dimitri John Ledkov wrote:
>> Hi,
>>
>> On Mon, May 17, 2021 at 7:50 PM Krzysztof Kozlowski
>> <krzysztof.kozlowski at canonical.com> wrote:
>>>
>>> The kernel comes with useful GDB debugging scripts/commands (enabled
>>> with CONFIG_GDB_SCRIPTS), however these are built either with "all" make
>>> target or with "scripts_gdb".  Build these in
>>> "$(stampdir)/stamp-build-%" target and package in "install-%" under
>>> /usr/lib/debug/share.
>>>
>>
>> I'm still not too sure about this location. Where did it come from?
> 
> It came from other files in dbgsym package.
> 
>>
>> Normally, when running under gdb it has autoload functionality of
>> loading auxiliary scripts.
> 
> I am not sure if this is good idea to add them to autoload. They have no
> meaning outside of Linux kernel so why they should be present on each
> gdb run? Anyway user will have to load symbols separately, so why not
> loading scripts as well?

No, symbols are loaded automatically by gdb, if they are found.



More information about the kernel-team mailing list