Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-12-01 Thread Etienne Cordonnier via lists.openembedded.org
Correct, gbd supports minidebuginfo and can print backtraces using it. On Thu, Nov 30, 2023 at 6:38 PM Richard Purdie < richard.pur...@linuxfoundation.org> wrote: > On Thu, 2023-11-30 at 09:32 -0800, Khem Raj wrote: > > On Thu, Nov 30, 2023 at 3:21 AM Richard Purdie > > wrote: > > > > > > Hi, >

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Richard Purdie
On Thu, 2023-11-30 at 09:32 -0800, Khem Raj wrote: > On Thu, Nov 30, 2023 at 3:21 AM Richard Purdie > wrote: > > > > Hi, > > > > I saw some of this discussion on the systemd-devel list so I'm happy to > > see patches to sort out the configuration on our side, thanks! > > > > On Thu, 2023-11-30

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Khem Raj
On Thu, Nov 30, 2023 at 3:21 AM Richard Purdie wrote: > > Hi, > > I saw some of this discussion on the systemd-devel list so I'm happy to > see patches to sort out the configuration on our side, thanks! > > On Thu, 2023-11-30 at 12:15 +0100, Etienne Cordonnier via > lists.openembedded.org wrote:

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Richard Purdie
On Thu, 2023-11-30 at 12:29 +0100, Etienne Cordonnier wrote: > OK, thanks for your quick answer. I'll try to turn it into a > DISTRO_FEATURES and write a test for it then (I need to check how > tests running on the target work in poky. I'm not sure can test > systemd-coredump without target easily)

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Etienne Cordonnier via lists.openembedded.org
OK, thanks for your quick answer. I'll try to turn it into a DISTRO_FEATURES and write a test for it then (I need to check how tests running on the target work in poky. I'm not sure can test systemd-coredump without target easily). Etienne On Thu, Nov 30, 2023 at 12:21 PM Richard Purdie < richard

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Richard Purdie
Hi, I saw some of this discussion on the systemd-devel list so I'm happy to see patches to sort out the configuration on our side, thanks! On Thu, 2023-11-30 at 12:15 +0100, Etienne Cordonnier via lists.openembedded.org wrote: > Hi all, I sent this patch to start the conversation, but I guess >

Re: [OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Etienne Cordonnier via lists.openembedded.org
Hi all, I sent this patch to start the conversation, but I guess PACKAGE_MINIDEBUGINFO may have to be turned into a DISTRO_FEATURES before this can be merged. I tested this with core-image-sato after enabling systemd in local.conf. I then started: $ vi In other terminal: $ kill -SEGV $(pidof vi) $

[OE-core] [PATCH] gdb/systemd: enable minidebuginfo support conditionally

2023-11-30 Thread Etienne Cordonnier via lists.openembedded.org
From: Etienne Cordonnier Enabling minidebuginfo is not useful if gdb and systemd-coredump are unable to parse it. In order to parse it, gdb needs xz support. Systemd needs coredump enabled, as well as elfutil enabled as well (systemd-coredump loads libdw which is part of elfutils using dlopen).