From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id DDF3338493FB for ; Thu, 24 Nov 2022 12:24:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDF3338493FB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id A58E430008BB; Thu, 24 Nov 2022 13:24:00 +0100 (CET) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 5D6055093B52; Thu, 24 Nov 2022 13:24:00 +0100 (CET) Message-ID: <6cf1a5ef8636a1603181f0b177909a1e7869ece9.camel@klomp.org> Subject: Re: debuginfod vs libthread_db.so From: Mark Wielaard To: Avi Kivity , gdb@sourceware.org Date: Thu, 24 Nov 2022 13:24:00 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-3032.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Avi, On Thu, 2022-11-24 at 14:02 +0200, Avi Kivity via Gdb wrote: > (tangent: is it possible to express libthread_db.so code as DWARF > expressions? if so it will be possible to get rid of libthread_db.so, > by having libc encode accessors to thread information as some DWARF > expressions, and teaching gdb to use those expressions instead of > calling libthread_db.so) There used to be an effort to define a kind of extended DWARF expressions, infinity notes, to describe things like the libthread_db.so code. Although the website can only be found in archive.org now, the code is still out there: https://web.archive.org/web/20190126111943/https://infinitynotes.org/wiki/I= nfinity Mailing list: infinity@sourceware.org,=20 https://sourceware.org/ml/infinity/ Source code: https://gitlab.com/gbenson/i8c/,=20 https://gitlab.com/gbenson/libi8x/ Cheers, Mark