[systemd-devel] Using lldb in coredumpctl?

Ryan Gonzalez rymg19 at gmail.com
Sun Apr 15 00:14:26 UTC 2018


Just filed #8722 for this: https://github.com/systemd/systemd/issues/8722

On Thu, Apr 12, 2018 at 8:17 AM, Lennart Poettering <lennart at poettering.net>
wrote:

> On Do, 12.04.18 07:48, Ryan Gonzalez (rymg19 at gmail.com) wrote:
>
> > coredumpd has definitely become one of my favorite systemd components
> since
> > it makes debugging segfaults far easier than otherwise. However, for
> various
> > reasons, I prefer using LLDB to GDB. Unfortunately, coredumpctl's gdb
> > command is hardcoded to run, well, GDB.
> >
> > My idea: what if there were a 'coredumpctl lldb' command, which did the
> same
> > thing as 'coredumpctl gdb', except...instead running LLDB.
> >
> > Of course, this could be done with a new switch, but 'coredumpctl gdb
> > --lldb' seems a little idiosyncratic...
>
> Hmm, three ideas:
>
> 1. we could add "coredumpctl run" which will extend the command line
>    you have with the path to the unpacked coredump: "coredumpctl run
>    lldb" would then do what you want (at least under the assumption
>    that lldb is fine with just taking the coredump as argument?)
>
> 2. we could add a --debugger= switch or so similar to what you
>    proposed. Plus a new verb "debug" that is an alias for "gdb", to
>    make it less idiosyncractic for you.
>
> 3. add support for $SYSTEMD_DEBUGGER or so, which would be like #2 but
>    you could set for your entire login session
>
> Of course any combination of the above would work too.
>
> Please file an RFE issue on github requesting this, maybe linking to
> this mail...
>
> Lennart
>
> --
> Lennart Poettering, Red Hat
>



-- 
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180414/107722c1/attachment.html>


More information about the systemd-devel mailing list