guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42882] [PATCH] system: Modify GDB skeleton to find debug files for


From: Mathieu Othacehe
Subject: [bug#42882] [PATCH] system: Modify GDB skeleton to find debug files for any profile.
Date: Sun, 16 Aug 2020 10:21:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello Maxim,

> +Below is an alternative GDB script that can be useful when working with
> +other profiles.  It takes advantage of the Guile integration available
> +in GDB.

You could say the "optional Guile integration", because it is (sadly)
disabled on Ubuntu's gdb build for instance.

> +
> +@example
> +guile
> +(begin
> +  (use-modules (gdb)
> +               (srfi srfi-26))
> +  (let* ((library-paths (string-split (getenv "LIBRARY_PATH") #\:))
> +         (debug-paths (map (cut string-append <> "/debug")
> +                           library-paths)))
> +    (execute (format #f "set debug-file-directory ~a"
> +                     (string-join debug-paths ":")))))
> +end
> +@example

And maybe precise that this very snippet will be installed by default as
.gdbinit on Guix System?

Otherwise it looks fine to me.

Thanks,

Mathieu





reply via email to

[Prev in Thread] Current Thread [Next in Thread]