On Wed, 31 Aug 2022, Olivier Dion via <[email protected]> wrote:
> Hi,
>
> While debugging with GDB, I always have the following warning:
>
> > warning: Unable to find libthread_db matching inferior's thread
> > library,thread debugging will not be available.
I've tried to add the following to .gdbinit:
--8<---------------cut here---------------start------------->8---
guile
(use-modules
(gdb)
(srfi srfi-26))
(let ((libthread-db (and=> (getenv "GUIX_ENVIRONMENT") (cut string-append <>
"/lib"))))
(when (and=> libthread-db file-exists?)
(execute (string-append "set libthread-db-search-path " libthread-db))))
end
--8<---------------cut here---------------end--------------->8---
without much success.
--
Olivier Dion
oldiob.dev