From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124047 invoked by alias); 28 Oct 2019 20:34:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 124036 invoked by uid 89); 28 Oct 2019 20:34:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=downloading, lightweight, our X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 28 Oct 2019 20:34:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572294860; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t0LN9aOX4EoqjJ3xzG2heE7AEl1MnMGqDUqaJt2GLjw=; b=hK+EERNsZkSLWBwe4gSHO9Yggilz+8Eo6M5NcMiEVbxkxIrG13iH+eXG+WdImpFNkO/uo2 T+pBD9Op3Ft/6VZVlZiwXkOs4E/8EHRoDfS7b1uznMo2ciiHhwFu5ECYLbg8b9fsnTyE/z rF19xBWQ0pIJ5eJLArmluiB4DdnpDcQ= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-8MHwjjE1NBORE6eTxbdW2A-1; Mon, 28 Oct 2019 16:34:14 -0400 Received: by mail-ua1-f71.google.com with SMTP id p9so1801704uar.8 for ; Mon, 28 Oct 2019 13:34:14 -0700 (PDT) MIME-Version: 1.0 References: <20190820202809.25367-1-amerey@redhat.com> <87pnj6dl3k.fsf@tromey.com> In-Reply-To: <87pnj6dl3k.fsf@tromey.com> From: Aaron Merey Date: Mon, 28 Oct 2019 20:34:00 -0000 Message-ID: Subject: Re: [RFC PATCH] Support debuginfo and source file fetching via debuginfo server To: Tom Tromey Cc: Christian Biesinger via gdb-patches , Christian Biesinger X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-10/txt/msg00999.txt.bz2 On Wed, Oct 9, 2019 at 10:55 AM Tom Tromey wrote: > > >>>>> "Christian" =3D=3D Christian Biesinger via gdb-patches writes: > > >> Debuginfo server is a lightweight web service that indexes debuginfo > >> and source files by build-id and serves them over HTTP. > > Christian> You wrote that the debuginfo server will download symbols over= HTTP. > Christian> Does that mean that this call to dbgserver_find_debuginfo will= block > Christian> as it downloads the file? (will ctrl+c work as it does that?) > > The control-c question is a good one -- I'd also like to know the > answer. Most things in gdb are interruptible this way. We are now using the libcurl multi interface to fetch files over HTTP and it is mostly non-blocking (although blocking can happen during domain name resolution). However ctrl+c does not interrupt our symbol downloading within GDB. This may be due to GDB's SIGINT handling, which just sets a flag for the event loop when it is not safe to throw an exception. Based on a comment in gdb/event-top.c:handle_sigint(), symfile reading is one such region. Also, we have an environment var $DEBUGINFOD_TIMEOUT that lets users control how much time is spent attempting each download without having to rely on ctrl+c. Aaron