From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id jo4PDVrtOWYCbgkAWB0awg (envelope-from ) for ; Tue, 07 May 2024 04:59:06 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=abmdCBeG; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 252501E0C1; Tue, 7 May 2024 04:59:06 -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 0B9AF1E030 for ; Tue, 7 May 2024 04:59:04 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 856C8384B11C for ; Tue, 7 May 2024 08:59:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 856C8384B11C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715072343; bh=Yv86/cM+L6w8kBb3FmXa9qqVTJVVXxa1YWUfwevUraY=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=abmdCBeGhpblwmyMv8KFhhM1v12rcpmyPWArvyYgzlmX0nTn6fv9HShb76JEpzzF/ oOQvZyYzzXqse2Y1ajD/7s7HjQBE1jBIiWwAhoZH7TqkkNO6XNmn4qrIXx7Q9zdSvW Gy+9j/t5AjhzLxM52hqxRt/sPPoYsKYRgn5o93Pw= Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by sourceware.org (Postfix) with ESMTPS id B79363858D39 for ; Tue, 7 May 2024 08:58:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B79363858D39 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B79363858D39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715072294; cv=none; b=tJkqMe7LEcXh8uFsYgtTPodbaLV2Bzdyr25vWq/REjt3PHo0bNQj460WC3YOcpZYehFLI731Rjz1S9jghjHsMV/Zkbci3HJ4iA3S/OLAE16nyi1J+f3ZOR5JhB/plt+XWDRLQcIP7GYlqDpcNYDT6SDaxndeCcm15n87i/QUzrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715072294; c=relaxed/simple; bh=Yv86/cM+L6w8kBb3FmXa9qqVTJVVXxa1YWUfwevUraY=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=TIJONZlbESxPcXiTZCk7qrEo1OkQ1oxyl7Ty1uboSRhk/YLYlSlGb4Ya5DchiLUkuOh857iPvVTvgbVmephOb4WvOX/BdqBkwcGixHuADCiYH74wi54W3H+3NVh1FEier4DTkcW20q0849PNy+jfYfp0zlqM+oTGiz3VgEtYIYU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ua1-x931.google.com with SMTP id a1e0cc1a2514c-7f7eb08923aso279794241.3 for ; Tue, 07 May 2024 01:58:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715072291; x=1715677091; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Yv86/cM+L6w8kBb3FmXa9qqVTJVVXxa1YWUfwevUraY=; b=xEJV8hAHA3uCy+R/IEdOVcxAgiTb6UQEQMPZQXv8cdysMKEC4yU/CMKCAQL1UEdaSC ZhJOPjZH8650fxmoyZL7jDTPrts2Tegxniip9grBLnQdGas5XvnHweDvlreL/HAzu6vN QP3oQLa0jzTp6vZ2B+sNQVPYpj4mLuZ/5nmSBhEhQPVFg9xIhSb6dP/Lw4IH95+xDfeX SOQCVsZeDExBUoMEDubxc5lQkorz7HJ8KXPyynBtIl0HRiT6aBxSmzAASv5dgwgZtQJn qe+loLdlk7aOnXat+t83Iu28uD+0icQLQeFC0rR/eaPTcGIEss2pbAMk+1NtJKLf6QgC 9Zlw== X-Gm-Message-State: AOJu0YxvH3loYeswxQCwg5/J+KVlr4Kfdb43Mc690xUvSlQiuVdKdzae 4e1d90u9XiZ3fqvpj3dyQiBMMp5QL8wU86RGVGSgNHreIuqFSArSmDLjDcA3eW3mepkgLj2Sdnc xtt1jBJyfEAfP1iaBgkcMVLmGgV3B18Glp0DhTWr7OXac+9fxHg== X-Google-Smtp-Source: AGHT+IFFj1G2Ja2NdB1AAHJYK+b7KXIIj6/GIbXxkfxm2raXdErUG3R4qF9Flt3hQ09NPMpcHjAZdx7tdW3foufwI0k= X-Received: by 2002:a67:cb15:0:b0:47c:a6b0:a0cd with SMTP id b21-20020a67cb15000000b0047ca6b0a0cdmr13688329vsl.2.1715072290706; Tue, 07 May 2024 01:58:10 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 7 May 2024 10:57:59 +0200 Message-ID: Subject: Debuginfod in an interactive gdb frontend To: Dmitry Neverov via Gdb Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: , From: Dmitry Neverov via Gdb Reply-To: Dmitry Neverov Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Please suggest how to integrate with debuginfod in the interactive gdb frontend. Since loading debug information can be slow, I'd like to ask the user before loading, similar to what `set debuginfod enabled ask` does in the terminal. The 'set debuginfod enabled ask' defaults to 'N' in the non-interactive terminal. Is there any way to hook into this interaction and make the answer depend on user choice in UI without typing in the console? Also since loading takes time, I'd like to show some progress in UI. Is it possible to get notified when the debuginfo loading for a given binary starts/finishes, and with which result? I thought I could write a MissingDebugHandler in python and wrap debuginfod with necessary progress, but it looks like debuginfod api is not available in python. -- Dmitry