all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unable to find libthread_db
@ 2022-09-01  1:12 Olivier Dion via
  2022-09-01 15:29 ` Olivier Dion via
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Dion via @ 2022-09-01  1:12 UTC (permalink / raw)
  To: help-guix

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.

Often I dont really care, but now I suspect that because of this, GDB is
unable to show TLS variables.

Any idea?

-- 
Olivier Dion
oldiob.dev



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to find libthread_db
  2022-09-01  1:12 Unable to find libthread_db Olivier Dion via
@ 2022-09-01 15:29 ` Olivier Dion via
  0 siblings, 0 replies; 2+ messages in thread
From: Olivier Dion via @ 2022-09-01 15:29 UTC (permalink / raw)
  To: help-guix

On Wed, 31 Aug 2022, Olivier Dion via <help-guix@gnu.org> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-01 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01  1:12 Unable to find libthread_db Olivier Dion via
2022-09-01 15:29 ` Olivier Dion via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.