From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5DQZNJh3OmYV5QkAWB0awg (envelope-from ) for ; Tue, 07 May 2024 14:48:56 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=uOLHKa+a; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C75351E0C1; Tue, 7 May 2024 14:48:56 -0400 (EDT) Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B45751E092 for ; Tue, 7 May 2024 14:48:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3669F3858D1E for ; Tue, 7 May 2024 18:48:54 +0000 (GMT) Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 28FED3858CDB for ; Tue, 7 May 2024 18:48:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28FED3858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 28FED3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715107706; cv=none; b=Z/lXsAYSNZlyg0fglBM3vaDpkJbyeDgjQd4RUAcoiAQCX42MH9jF1iHsfVvZ/f9XZ9X37eN+HOpfLRinHDJAn8eDRVgrwSoCROFtE33nKHlMejqHk2tQ9Vlw/BLzd3ysTchYn5AUarzeXJWQVqDg4tBBFGAzXWiKAdEw6btJvks= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715107706; c=relaxed/simple; bh=m6Ncux0XK/qoKofl8mXl5v7WZm70PcdBNVScDheT+oY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UU6mViE785FwY6yPws0n71hmGQRKP3w+a0Hg/jzlY2XXo9wxqoYfR5lbx0RD8TmmoWlLOjLjoNL47QA47wWDaHBJHniajZjHcbzPCKeRe7h26zb+lva3j1VirX6aB/hr2jPJ2Sip3UHyj/QzLevPvocn9GOnNWtkwb8HGfUeC3k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6010a.ext.cloudfilter.net ([10.0.30.248]) by cmsmtp with ESMTPS id 4EoasPyVsjfBA4PrTsvh6l; Tue, 07 May 2024 18:48:23 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 4PrSsOicKF4Xp4PrSsJ8kT; Tue, 07 May 2024 18:48:22 +0000 X-Authority-Analysis: v=2.4 cv=UpZlNfwB c=1 sm=1 tr=0 ts=663a7776 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=TpHVaj0NuXgA:10 a=Qbun_eYptAEA:10 a=CCpqsmhAAAAA:8 a=b3v7BPp3U_hdi3vLdhgA:9 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ejhzsDxLnG55YcEjZJ7maORz9+2E/AUqISaxSp4g/HI=; b=uOLHKa+af1+4zcLrGdNSYUNf+b QyuzbGRSiuEk/PRCirt9BA6iDcD4BouKaa3M7NV7SIGqLhK59HeJ25c+PPs1+jsR19dx2s4xdSTpR X1fgujbHRugMtsqcG50QLO6ii; Received: from 97-122-86-252.hlrn.qwest.net ([97.122.86.252]:48558 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1s4PrS-004EO8-0r; Tue, 07 May 2024 12:48:22 -0600 From: Tom Tromey To: Dmitry Neverov via Gdb Cc: Dmitry Neverov Subject: Re: Debuginfod in an interactive gdb frontend In-Reply-To: (Dmitry Neverov via Gdb's message of "Tue, 7 May 2024 10:57:59 +0200") References: X-Attribution: Tom Date: Tue, 07 May 2024 12:48:21 -0600 Message-ID: <87seyt8nm2.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.86.252 X-Source-L: No X-Exim-ID: 1s4PrS-004EO8-0r X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-252.hlrn.qwest.net (murgatroyd) [97.122.86.252]:48558 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfMgdm8Nyjwlk+ugrYlMj+ByvPdRQWVGMYjohhKc9RuI6Uc3CYR92sENjKodDLDfOeWToA5eAhRp9k3gZpPyfXVDldUE7vXh+vGRdtRX2VCV6bfSOSKdZ PthwgF8E5VODPFJvmxLwsJ5natiNlrKbypAhHaProtlmhawzcCeMevwTb+Ct0vynots0sO8QxX6Bcw== X-Spam-Status: No, score=-3014.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 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" >>>>> "Dmitry" == Dmitry Neverov via Gdb writes: Dmitry> Please suggest how to integrate with debuginfod in the interactive gdb frontend. Dmitry> Since loading debug information can be slow, I'd like to ask the user Dmitry> before loading, similar to what `set debuginfod enabled ask` does in Dmitry> the terminal. The 'set debuginfod enabled ask' defaults to 'N' in the Dmitry> non-interactive terminal. Is there any way to hook into this Dmitry> interaction and make the answer depend on user choice in UI without Dmitry> typing in the console? Dmitry> Also since loading takes time, I'd like to show some progress in UI. Dmitry> Is it possible to get notified when the debuginfo loading for a given Dmitry> binary starts/finishes, and with which result? Dmitry> I thought I could write a MissingDebugHandler in python and wrap Dmitry> debuginfod with necessary progress, but it looks like debuginfod api Dmitry> is not available in python. gdb doesn't really have a way to forward these user questions over MI (assuming that is what you are using). Maybe one option would be for your front end to present the choice to the user somehow and then use this to change the gdb setting. For progress notification -- MI does have some notion of this. I didn't look but I assume the debuginfod support isn't using it. This could be changed. Tom