From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uUFxJ3Jif2M2NhwAWB0awg (envelope-from ) for ; Thu, 24 Nov 2022 07:24:18 -0500 Received: by simark.ca (Postfix, from userid 112) id 8E6F31E124; Thu, 24 Nov 2022 07:24:18 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4FE8B1E0CB for ; Thu, 24 Nov 2022 07:24:17 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C76BC3839DD2 for ; Thu, 24 Nov 2022 12:24:16 +0000 (GMT) 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-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" 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