From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12907 invoked by alias); 4 Nov 2019 15:03:35 -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 12877 invoked by uid 89); 4 Nov 2019 15:03:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=react, Frank, H*f:sk:trqYHv3, H*f:sk:CAJDtP- X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Nov 2019 15:03:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572879812; 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=H7JMNhpV9uwiXHf1Ki+20Yqvx7VlnGX+XvbB2ftE1+8=; b=RYr57QepzhH0RZS9kZz/GNTPV/pLRc+E6VQlgvZzVNvGhJkRtiMQKsvkUrz6OSB0PeJW6i Y1KqtF30DDdepQDKCSD7+50xACUQHHNW+9G48HQxyV94Yw+ZOBkcVXC1vqh+KXADeT5vVA Mp4wvoLeg21rtMy3kW1VAyfqisiqImE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-138-FOiIu6ovMZaHehCQxeEooQ-1; Mon, 04 Nov 2019 10:03:28 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9BAB72A3; Mon, 4 Nov 2019 15:03:27 +0000 (UTC) Received: from redhat.com (ovpn-116-53.phx2.redhat.com [10.3.116.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9A75A5D6C8; Mon, 4 Nov 2019 15:03:26 +0000 (UTC) Received: from [127.0.0.1] (helo=vm-rhel7) by redhat.com with esmtp (Exim 4.92) (envelope-from ) id 1iRdt6-0004Om-Qy; Mon, 04 Nov 2019 10:03:24 -0500 From: fche@redhat.com (Frank Ch. Eigler) To: Aaron Merey Cc: Tom Tromey , Christian Biesinger via gdb-patches , Christian Biesinger Subject: Re: [RFC PATCH] Support debuginfo and source file fetching via debuginfo server References: <20190820202809.25367-1-amerey@redhat.com> <87pnj6dl3k.fsf@tromey.com> <87sgn71ji6.fsf@tromey.com> <87lfsye5l5.fsf@redhat.com> Date: Mon, 04 Nov 2019 15:03:00 -0000 In-Reply-To: <87lfsye5l5.fsf@redhat.com> (Frank Ch. Eigler's message of "Sat, 02 Nov 2019 10:05:42 -0400") Message-ID: <87bltrelab.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-11/txt/msg00089.txt.bz2 fche@redhat.com (Frank Ch. Eigler) writes: > Actually we can probably do even better: trap the SIGINT ourselves in > libdebuginfod, but upon return to gdb with an -EINTR, the caller can > call set_quit_flag(). Then the rest of gdb can react the normal way. Actually2, prototyped a solution whereby the library temporarily hijacks SIGINT to interrupt its ongoing transfers, then raises a SIGINT back to gdb or other caller upon return. If this works, then no changes at all are required to the gdb/libdebuginfod interface code. - FChe